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

Fix missing exporter in PHPUnit constraint poylfill #33253

Merged
merged 1 commit into from Aug 20, 2019

Conversation

alcaeus
Copy link
Contributor

@alcaeus alcaeus commented Aug 20, 2019

Q A
Branch? 4.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #...
License MIT
Doc PR -

Since PHPUnit 7 drops the constructor in PHPUnit\Framework\Constraint\Constraint, overriding the constructor in a user land constraint breaks. To do so, we create an exporter in exporter() as is done in PHPUnit > 7.

@nicolas-grekas
Copy link
Member

Thank you @alcaeus.

nicolas-grekas added a commit that referenced this pull request Aug 20, 2019
This PR was merged into the 4.4 branch.

Discussion
----------

Fix missing exporter in PHPUnit constraint poylfill

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | -

Since PHPUnit 7 drops the constructor in `PHPUnit\Framework\Constraint\Constraint`, overriding the constructor in a user land constraint breaks. To do so, we create an exporter in `exporter()` as is done in PHPUnit > 7.

Commits
-------

b78c5cb Fix missing exporter in PHPUnit constraint poylfill
@nicolas-grekas nicolas-grekas merged commit b78c5cb into symfony:4.4 Aug 20, 2019
@alcaeus alcaeus deleted the fix-missing-exporter branch August 20, 2019 10:39
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants