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 BC break in PHPUnit 8 #59

Closed
wants to merge 1 commit into from
Closed

Conversation

emodric
Copy link
Contributor

@emodric emodric commented Feb 1, 2019

Constraint::$exporter property was made private and Constraint::__construct removed in PHPUnit 8: sebastianbergmann/phpunit#3060

@@ -13,7 +13,9 @@ abstract class AbstractConfigurationConstraint extends Constraint

public function __construct(ConfigurationInterface $configuration, $breadcrumbPath = null)
{
parent::__construct();
if (property_exists($this, 'exporter')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really a safe way to check what version it is?

Could we improve?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we can use PHPUnit\Runner\Version class to check for the version. Let me know and I'll update on Monday.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about what I did in #60 ?

@Nyholm
Copy link
Member

Nyholm commented Feb 2, 2019 via email

@emodric
Copy link
Contributor Author

emodric commented Feb 4, 2019

Closed in favor of #60

@emodric emodric closed this Feb 4, 2019
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.

None yet

3 participants