-
Notifications
You must be signed in to change notification settings - Fork 48
Fix PHP 5.3 incompatibilities #43
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
Fix PHP 5.3 incompatibilities #43
Conversation
| machine: | ||
| php: | ||
| version: 5.4.37 | ||
| version: 5.3.25 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the latest php version that CircleCI gives us.
| test: | ||
| override: | ||
| # syntax check php files | ||
| - find ./src -name "*.php" -type f -print0 | xargs -0 -I {} php -l {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'compile' step to ensure php 5.3 compatibility in case tests don't have 100% code coverage
| "guzzle/guzzle": "dev-master#ecb935d2d0ecd8cddae4dcfb90515cac5e2cb023", | ||
| "psr/log": "1.0.0" | ||
| "psr/log": "1.0.0", | ||
| "justinrainbow/json-schema": "v1.6.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a transitive dependency, but the version is not pinned, and by default composer will bring in a version that is too high to be compatible with 5.3.25. This is the highest version compatible with 5.3.25
| private $_negate = false; | ||
|
|
||
| private function __construct($attribute, $op, array $values, $negate) { | ||
| public function __construct($attribute, $op, array $values, $negate) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these newly public methods are to make the syntax checker happy.
|
👍 |
add param to skip db tests, update docs for new repo name
This is now working with PHP 5.3.25