-
Notifications
You must be signed in to change notification settings - Fork 356
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
Backports for 5.2.7 #495
Conversation
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
Fix: Remove unused parameter
Fix: Remove unused private method
Fix: No need to specify path to bin directory
Fix: Use more appropriate assertions
Fix: Remove unused argument from method call
Fix: Case mismatch
Fix: Consistently indent with 2 spaces
Fix: Add PHP 7.2 to build matrix
Fix: No need to update composer itself
Enhancement: Implicitly enable no_unused_imports fixer
Fix: Remove unused argument
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 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? |
@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. |
@bighappyface I've added a commit to it (after running the style-fixer), and Travis now seems happy. |
Bugfixes from 6.0.0 that can be backported to 5.2.7 without breaking backwards-compatibility.
Backported PRs
PHPUnit\Framework\TestCase
instead ofPHPUnit_Framework_TestCase
.php_cs.dist
$ref
'ed property / item definitionsSkipped PRs
check()
andcoerce()
as deprecated) - not deprecated in 5.x.x