We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This line uses the following syntax for passing a function to array_map:
array_map
$data = array_map('self::convertObjectToArray', $data);
PHP 8.2 has deprecated this callable format, because it does not always work properly.
The following syntax should provide equivalent behavior, and is not deprecated:
$data = array_map([$this, 'convertObjectToArray'], $data);
(There are several other equivalent syntaxes, but this is the one I personally like best.)
This line creates an $options property on the HandlebarsCompiler object, which was not previously defined.
$options
HandlebarsCompiler
The class should probably have $options defined as an explicit property.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
'Use of "self" in callables is deprecated'
This line uses the following syntax for passing a function to
array_map
:PHP 8.2 has deprecated this callable format, because it does not always work properly.
The following syntax should provide equivalent behavior, and is not deprecated:
(There are several other equivalent syntaxes, but this is the one I personally like best.)
'Creation of dynamic property ProAI\Handlebars\Compilers\HandlebarsCompiler::$options is deprecated'
This line creates an
$options
property on theHandlebarsCompiler
object, which was not previously defined.The class should probably have
$options
defined as an explicit property.The text was updated successfully, but these errors were encountered: