Skip to content

Fix PHPUnit deprecations#969

Merged
derrabus merged 1 commit into
3.3.xfrom
phpunit-deprecations
Aug 8, 2022
Merged

Fix PHPUnit deprecations#969
derrabus merged 1 commit into
3.3.xfrom
phpunit-deprecations

Conversation

@malarzm

@malarzm malarzm commented Aug 8, 2022

Copy link
Copy Markdown
Member

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
}

/**
* @requires PHP >= 7.2

@malarzm malarzm Aug 8, 2022

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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

derrabus commented Aug 8, 2022

Copy link
Copy Markdown
Member

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 force-pushed the phpunit-deprecations branch from 62c2914 to 457b513 Compare August 8, 2022 21:28
@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

derrabus commented Aug 8, 2022

Copy link
Copy Markdown
Member

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