-
Notifications
You must be signed in to change notification settings - Fork 127
PHP 7.4 fix - Ensure the existence of the 'args' key. #202
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
Conversation
Probably due to the error reporting level configuration. |
Oops, it's not a valid solution. |
I have an error when using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR, I'm very curious why this was happening. If you have the fix in place it could be that you still have issues using this library because this is a new concept in v5. The original processed tag contained an issue which cannot be solved. To make sure the docblock parsing can continue we introduced this fallback. In normal sitations you should not get an instance like this one. Mostlikely you have an issue in a dockblock in your code.
There are a number of things that you could do:
- Debug your code and see what tag ends here.
- Run phpdoc v3.0.0-rc against your code base, and check the error report in the generated docs.
Could your please update the implementation and run the tests.
You should be able to run the following commands if you have docker installed.
make setup test
Please let me know if you have any issues running the tests or with fixing this issue.
Ha yes, that author tag is invalid, the second string between |
@jaapio There is no PHPDoc issue in my sources as far as I can see, I really think in this case, we should definitely commit this fix. |
Thanks for this fix! |
Thank you you ! |
hi, php-7.4 introduced a new ini config flag allowing to disable/enable the args index. |
Good to know, thanks ! |
This simple fix for ensuring the existence of the 'args' key.
With PHP 7.4 on Linux and Windows, it fails without it.
Weird thing is that it doesn't break on MacOSX.
See it live here: https://github.com/ecphp/cas-bundle/actions/runs/36937260