-
Hi all I would like to ask how do you run PHPCS from a script? Let's say I have a phpcsrunner.php and I want to evaluate my standard against a file, in order to continuously develop the sniff, as my standard is very peculiar, so I use, mostly chatGPT to generate the sniff and I adjust it if necessary. It works for some cases, but, for other cases, the phpcs runner seems to timeout ( according to phpstorm ) and I can't figure it out why or even if there was a crash. My current difficulty lie in the fact that xdebug does not seem to work and even var_dump is not dumping stuff to the output, so I figure that some methods are disabled. What would be the best approach to tackle this issue? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@jarodium As according to the above, things work fine on the command line, the problem is with your The only thing I can think of, is to suggest for you to compare the |
Beta Was this translation helpful? Give feedback.
@jarodium As according to the above, things work fine on the command line, the problem is with your
phpcsrunner.php
script and/or how it is invoked and nobody but you, has access to that script and your environment. In other words: this is nothing to do with PHPCS.The only thing I can think of, is to suggest for you to compare the
php.ini
file used by the PHP version used when running PHPCS from the command line versus whateverphp.ini
file is used in the container you use for your script.