Skip to content

Instantly share code, notes, and snippets.

@MikeNGarrett
Last active January 28, 2019 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeNGarrett/8847435182e460dac519dcda7e99eb3a to your computer and use it in GitHub Desktop.
Save MikeNGarrett/8847435182e460dac519dcda7e99eb3a to your computer and use it in GitHub Desktop.
Test site compatibility with a specific version of PHP
# Test site compatibility with a specific version of PHP.
# Requires phpcs and PHPCompatibility config installed.
phpcs --standard=PHPCompatibility --runtime-set testVersion 7.2 ./
# Configuration I use most:
phpcs -p ./ --standard=PHPCompatibility --runtime-set testVersion 7.2 --report-full=~/petitions-7.2.txt --ignore="*.js|css"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment