website/errors/function.deprecated.md
This error is reported by phpstan/phpstan-deprecation-rules.
<?php declare(strict_types = 1);
/**
* @deprecated Use newHelper() instead.
*/
function oldHelper(): void
{
}
oldHelper();
The code calls a function that has been marked as deprecated via a @deprecated PHPDoc tag, or it calls a function like ini_get() or ini_set() with a deprecated INI option. Deprecated functions and options are planned for removal in a future PHP version and should no longer be used.
Replace the call with the recommended alternative:
<?php declare(strict_types = 1);
-oldHelper();
+newHelper();
For deprecated INI options, use the replacement option or remove the call:
<?php declare(strict_types = 1);
-ini_set('assert.quiet_eval', '0');
+// assert.quiet_eval was removed in PHP 8.0