-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
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
Generic.PHP.DeprecatedFunctions return PHP Fatal error: Uncaught ReflectionException #2742
Comments
I don't know why a function returned from |
|
Hello Master, I already uploaded phpxml file and the file which report error on check and the version of os etc to the first comment. Thank you for your help. |
I can't replicate any issue with any of the built-in standards. It's possible that one of the external sniffs you are using is causing this issue. I would suggest commenting out all the external sniffs and running PHPCS again. If it not longer produces an error, uncomment each external sniff until you find the one that is causing the issue. If it still produces an error with just the included sniffs then I'm not sure what it is. |
I tried it in window docker but it does not show me such error, but in linux I get the above error. |
I tried after upgrated to version 3.54 and tested the file below still have problem.I also uploaded the progress of running detail. |
Fail Running logs Success Running Logs |
@harrisdt15f That looks like an issue with PHP itself, not with PHPCS. What version of PHP are you using ? |
@harrisdt15f Just for argument's sake and to exclude it: would you be able to test PR #2873 to see if that changes anything for you ? (and yes, I've tried and failed to reproduce the issue myself, so can't test this) |
php 7.3.13 ,could we have way to exclude like this kinds of functions and not to be exit. |
Let it be ,its because of php itself error. Thank you for all trying to help me. |
squizlabs/php_codesniffer version 3.5.3
PHP version
Framework Laravel 6.6.1
os version
xml file
phpcs.xml.txt
Problem
<rule ref="Generic.PHP.DeprecatedFunctions"/>
The file on getting error
BaseModel.php.txt
The text was updated successfully, but these errors were encountered: