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
Describe the bug
I run phpcbf command, it fixed a lot of files, but it left this message
"A TOTAL OF 43 ERRORS WERE FIXED IN 2 FILES"
PHPCBF FAILED TO FIX 2 FILES
Code sample
This is how I'm running the phpcbf
vendor/bin/phpcbf --standard=PSR12 app\views -n
To reproduce
Steps to reproduce the behavior:
Create a file called _app_link_list.php with the code sample above:
Edit:
It was because of this: <td><?php
I splited the line and it worked propperly.
I think it's a bug.
The other file error was because I was calling a function like this: generateSelectRequestMethods("id",$filter_endpoint_request,"filter_endpoint_request","onchange='filter_list(\"endpoints_table\",\"filter_endpoint_request\",0,5,\"row_line\",0)'",)
I guess that this final "," caused the program to fail, I think this is also a bug.
The text was updated successfully, but these errors were encountered:
@samoralespu Your issue has gotten little attention as the report is pretty unclear. The bug report template asks for a small code sample to reproduce the issue with. The code sample as provided generates 27 different errors, so it is unclear what you are reporting.
It was because of this: <td><?php
I splited the line and it worked propperly.
I think it's a bug.
I can see there is some sort of conflict, but with 27 errors in the original code sample, there is too much noise.
Please provide a small isolated code sample to make the issue reproducible.
The other file error was because I was calling a function like this:
I guess that this final "," caused the program to fail, I think this is also a bug.
This issue has been fixed via PR #3805 and the fix will be included in PHPCS 3.8.0.
Describe the bug
I run phpcbf command, it fixed a lot of files, but it left this message
"A TOTAL OF 43 ERRORS WERE FIXED IN 2 FILES"
PHPCBF FAILED TO FIX 2 FILES
Code sample
This is how I'm running the phpcbf
vendor/bin/phpcbf --standard=PSR12 app\views -n
To reproduce
Steps to reproduce the behavior:
_app_link_list.php
with the code sample above:Pd: this is just one of two files.
Versions :
Edit:
It was because of this:
<td><?php
I splited the line and it worked propperly.
I think it's a bug.
The other file error was because I was calling a function like this:
generateSelectRequestMethods("id",$filter_endpoint_request,"filter_endpoint_request","onchange='filter_list(\"endpoints_table\",\"filter_endpoint_request\",0,5,\"row_line\",0)'",)
I guess that this final "," caused the program to fail, I think this is also a bug.
The text was updated successfully, but these errors were encountered: