fix(refactor): correct warning php 5.4 (refs #3108)