-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
PHP Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /srv/vendor/squizlabs/php_codesniffer/src/Files/LocalFile.php on line 32 in #2087
Comments
Closing as duplicate. This has been asked and answered multiple times before. |
Could you please point me to relevant questions where you have provided an answer? |
I think it's this one: #2035 You can just search the issues for the relevant information 😉 |
Thanks, but there is nothing there which resolves my issue, I can't use I did some quick search and found no helpful solutions / answers, that's why asked you. Anyway, I understand the reasoning, so no problem. |
Why not? |
Because it brings in in-progress / unstable code into my repo, I don't want to chase things down if something is not working as it should. |
So, you can use You could, of course, pull in a particular commit: either the head of The three items you highlighted were fixed in #1984 and #1985. So 2fdc57f would include those fixes. Here is the list of changes from 2.3.0 to 2fdc57f. And the list of changes from 2fdc57f to the head of |
Correct! Awesome, thanks, that's better. |
If someone has a minute, could you please post how to upgrade to the
Doesn't seem to be doing the trick. |
composer require wp-coding-standards/wpcs:"dev-develop" You may need to add |
|
@jrfnl would you mind telling me what |
It's how Composer references non-tag branch names, so the Does that answer your question ? |
@jrfnl Getting there. So You rock, by the way. |
I think this page of the Composer documentation may help: https://getcomposer.org/doc/articles/aliases.md
Always nice to hear ;-) |
Bug Description
Because of no PHP 8.1 support yet, it causes issue with phpcs / phpcbf.
See squizlabs/PHP_CodeSniffer#3677
These places it needs to be fixed:
Until full support is added #2070, maybe a small fix release fixing it would be nice?
Tested Against
develop
branch?develop
branch of WPCS.The text was updated successfully, but these errors were encountered: