You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phpcbf loops until attempts limit (50) with rules Generic.Arrays.ArrayIndent & Generic.WhiteSpace.ScopeIndent then failed to fix.
On big sources failed on time limit (10min)
Current behavior
$./vendor/bin/phpcbf test.php
----------------------------------------------------------------------
FILE FIXED REMAINING
----------------------------------------------------------------------
test.php FAILED TO FIX
----------------------------------------------------------------------
A TOTAL OF 1 ERROR WERE FIXED IN 1 FILE
----------------------------------------------------------------------
PHPCBF FAILED TO FIX 1 FILE
----------------------------------------------------------------------
Thank you for reporting this issue. However this is not something we can fix. I've opened a phpcs issue with the info you provided: squizlabs/PHP_CodeSniffer#2905
I've been finding a solution for this, but I haven't found one. I've been disabling several rules which conflict in this case but disabling them caused other issues. The only way to fix this was writing it differently:
<?php
function test()
{
query(
'
INSERT INTO table (column)
VALUES (:value)
',
[
'value' => $value,
]
);
}
Bug Report
Summary
phpcbf loops until attempts limit (50) with rules Generic.Arrays.ArrayIndent & Generic.WhiteSpace.ScopeIndent then failed to fix.
On big sources failed on time limit (10min)
Current behavior
How to reproduce
Minimal source to reproduce:
Expected behavior
No error (all other rules applied)
Verbose output fragment
The text was updated successfully, but these errors were encountered: