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 PHPUnit deprecations #969

Merged
merged 1 commit into from
Aug 8, 2022
Merged

Fix PHPUnit deprecations #969

merged 1 commit into from
Aug 8, 2022

Conversation

malarzm
Copy link
Member

@malarzm malarzm commented Aug 8, 2022

As per title :)

@malarzm malarzm added this to the 3.4.0 milestone Aug 8, 2022
@malarzm malarzm force-pushed the phpunit-deprecations branch 2 times, most recently from add4baf to 62c2914 Compare August 8, 2022 21:15
@@ -193,13 +192,16 @@ static function () use ($test) {
self::assertSame('publicAssociationValue', $this->lazyObject->publicAssociation);
}

/**
* @requires PHP >= 7.2
Copy link
Member Author

@malarzm malarzm Aug 8, 2022

Choose a reason for hiding this comment

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

expectNotice does not exist in PHPUnit running on 7.1. I figured the test can be skipped as this is tested in higher versions anyway but I can also check for expectNotice existence and conditionally call old method.

Copy link
Member

Choose a reason for hiding this comment

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

I can also check for expectNotice existence and conditionally call old method.

I'd prefer that. You could also polyfill expectNotice with a trait.

@derrabus
Copy link
Member

derrabus commented Aug 8, 2022

For 3.3.x since it affects the test suite only?

@malarzm malarzm changed the base branch from 3.4.x to 3.3.x August 8, 2022 21:25
@malarzm malarzm modified the milestones: 3.4.0, 3.3.1 Aug 8, 2022
@malarzm malarzm requested a review from derrabus August 8, 2022 21:29
@derrabus derrabus merged commit 26a2d2a into 3.3.x Aug 8, 2022
@derrabus derrabus deleted the phpunit-deprecations branch August 8, 2022 21:51
@derrabus
Copy link
Member

derrabus commented Aug 8, 2022

Thanks!

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.

2 participants