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

Backports for 5.2.7 #495

Merged
merged 17 commits into from
Feb 14, 2018
Merged

Backports for 5.2.7 #495

merged 17 commits into from
Feb 14, 2018

Conversation

erayd
Copy link
Contributor

@erayd erayd commented Feb 14, 2018

Bugfixes from 6.0.0 that can be backported to 5.2.7 without breaking backwards-compatibility.

Backported PRs

Skipped PRs

mathroc and others added 16 commits February 14, 2018 14:28
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
Fix: No need to specify path to bin directory
Fix: Remove unused argument from method call
Fix: Consistently indent with 2 spaces
Enhancement: Implicitly enable no_unused_imports fixer
Fix: Keep rules sorted in .php_cs.dist
[BUGFIX] Apply defaults in $ref'ed property / item definitions
This commit deliberately tests in a way that violates the spec. Versions
of this library prior to 6.0.0 allow properties adjacent to $ref to
override properties with the same name from the $ref'ed schema. This is
explicitly in violation of the spec, but cannot be changed in 5.x.x, as
it results in a significant behavioral change that may break end users'
application logic.

This issue is resolved in 6.0.0, and siblings of $ref are correctly
ignored from 6.0.0 onwards.
@erayd erayd changed the base branch from master to 5.x.x February 14, 2018 02:06
@bighappyface
Copy link
Collaborator

@erayd something is funny about this PR. Travis isn't picking it up and is indicating an issue:

https://travis-ci.org/justinrainbow/json-schema/requests

See the top-most item for #495.

Thoughts?

@erayd
Copy link
Contributor Author

erayd commented Feb 14, 2018

@bighappyface I suspect it's having problems because I opened it against master, then changed the base branch to 5.x.x before the Travis job started, but after it was notified of the PR.

If I add another commit to this, or rebase it, that should restart Travis in an unconfused state. I'm not at my desk right now, but will do that once I'm back in a few hours.

@erayd
Copy link
Contributor Author

erayd commented Feb 14, 2018

@bighappyface I've added a commit to it (after running the style-fixer), and Travis now seems happy.

@bighappyface bighappyface merged commit 8560d43 into jsonrainbow:5.x.x Feb 14, 2018
@bighappyface
Copy link
Collaborator

@erayd erayd deleted the backport-527 branch February 14, 2018 22:56
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.

3 participants