Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linter task to phing for checking old PHP versions #1710

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rsynnest
Copy link

@rsynnest rsynnest commented Nov 9, 2021

Closes #1709

@terrafrost
Copy link
Member

In .travis.yml codesniffer is setup to run on PHP 5.5:

https://github.com/phpseclib/phpseclib/blob/1.0/.travis.yml#L36

One thing I feel like we could do is to update the .travis.yml on, say, PHP 5.6 or whatever, to lint for every version of PHP. Or at the very least lint for versions of PHP for which there aren't unit tests.

So like even tho the Travis CI "container" is running PHP 5.6, using Docker containers, it could still lint on PHP 4.4, PHP 5.0, etc.

I suppose something else we could do is to have a new build version [i]just[/i] for linting. This build version could be identified by the use of a custom env variable as is done here:

terrafrost/php-amqplib@317f91e

This .travis.yml might help as well:

https://github.com/phpseclib/benchmarks/blob/bcmath-no-openssl/.travis.yml

It'd also be good to have this on phpseclib 1.0 since that can run on PHP 4.4+. phpseclib 2.0 requires PHP 5.3+ but it's no longer being tested on PHP 5.3 via continuous integration as of 0539780

idk I just think having this linting done via continuous integration would be really cool!

@rsynnest
Copy link
Author

rsynnest commented Nov 9, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion: PHP Linting for Supported Versions
2 participants