Deprecation error on Alpha-2 that I’m trying to understand… failing
lloydsargent opened this issue · 3 comments
lloydsargent commented
This is the code:
composer/ClassLoader.php
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
Twig calls it and I get the following:
Exception has occurred.
Deprecated: Optional parameter $callable declared before required parameter $arguments is implicitly treated as a required parameter
Not being a PHP expert, I know what the code does, just not what the error actually means or, better yet, how to fix it.
PhrozenByte commented
Set error_reporting
in your php.ini
to a value recommended for production servers, e.g. error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
.
lloydsargent commented
I’m puzzled how this changes the fact that it is deprecated?
github-actions commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! 👍