Solve PHP Strict errors