Created
October 26, 2021 09:20
-
-
Save szeidler/df26731fe2ef7bbb1c161ae4b10aaa81 to your computer and use it in GitHub Desktop.
Check code for PHP compatibility issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Installation: | |
# - composer global require "squizlabs/php_codesniffer" | |
# - composer global require phpcompatibility/php-compatibility | |
phpcs -p . --standard=PHPCompatibility --runtime-set testVersion 7.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment