bug #38895 [PhpUnitBridge] Fix wrong check for exporter in ConstraintTrait (alcaeus)

This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Fix wrong check for exporter in ConstraintTrait

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| License       | MIT

I'll just go hide in the corner after messing up this check. 🤦‍♂️

Commits
-------

ecb477952a Fix wrong check for exporter in ConstraintTrait
This commit is contained in:
Alexander M. Turek 2020-10-30 15:00:40 +01:00
commit 9eeac8d09c
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ trait ConstraintTraitForV7
protected function exporter(): Exporter
{
if (null !== $this->exporter) {
if (null === $this->exporter) {
$this->exporter = new Exporter();
}