-
-
Notifications
You must be signed in to change notification settings - Fork 488
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 8 | ControlStructureSpacing: bug fix - $data should be an array #1935
PHP 8 | ControlStructureSpacing: bug fix - $data should be an array #1935
Conversation
The `$data` parameter of the `$phpcsFile->add[Fixable]Error|Warning()` methods is expected to be an array, not a string. Without this fix, PHP 8 will throw and (uncaught) `TypeError: vsprintf(): Argument #2 ($args) must be of type array, string given`.
I'm trying to set phpcs and keep getting this error. When will this be merged into master? It was fixed quite a while ago. |
@stingray21 When we're ready to release version 3.0.0. |
Howdy! Is there anything we can do to help get this shipped out? |
@kraftbj If you can get PHP Core to slow down with the deprecations, so I can focus back on CS work instead of spending all my time on PHP 8.1 fixes, that would be lovely! |
The
$data
parameter of the$phpcsFile->add[Fixable]Error|Warning()
methods is expected to be an array, not a string.Without this fix, PHP 8 will throw an (uncaught)
TypeError: vsprintf(): Argument #2 ($args) must be of type array, string given
.