Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
-
Hi,
I'm trying out GrumPHP in combination with PHPCS and PHPCompatibility. I have created a test.php file which contains code that is deprecated in PHP 7.4. When I do a git commit that includes test.php, GrumPHP will run PHPCompatibility on test.php. This seems to take forever though, and eventually the timeout is hit. When I use the following command:
php vendor/bin/grumphp git:pre-commit -vvv
It gives me the following error:
The process "'/<project-path>/vendor/bin/phpcs' '--standard=phpcs.xml' '--extensions=php' '--report=full' '--report-json' '--file-list=/tmp/phpDIXUnz'" exceeded the timeout of 10 seconds.
I looked at the temp file while it was running, and it only lists the test.php file. When I run the
"'/<project-path>/vendor/bin/phpcs' '--standard=phpcs.xml' '--extensions=php' '--report=full' '--report-json' '--file-list=/tmp/phpDIXUnz'"
command directly, it finishes in < 200ms.This is my grumphp.yml:
This is my phpcs.xml file:
Any idea why the timeout is hit when running PHPCompatibility in GrumPHP but not when I run the (apparently same) phpcs command directly?
Beta Was this translation helpful? Give feedback.
All reactions