Skip to content

Conversation

Majkl578
Copy link
Contributor

@Majkl578 Majkl578 commented Jan 31, 2018

This makes all assertion calls and also TestCase's utility methods static.

it's a tiny tests-only BC break if anyone extends Slevomat's TestCase and also overrides any of the utility methods.
Calling static methods dynamically is otherwise valid code.

See phpstan/phpstan#514, phpstan/phpstan-strict-rules#4, phpstan/phpstan-strict-rules#5 and doctrine/dbal@62eb475#commitcomment-24420550.

@kukulich kukulich merged commit 170deb0 into slevomat:master Jan 31, 2018
@Majkl578 Majkl578 deleted the tests-static-assertions-and-utils branch January 31, 2018 20:00
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.

2 participants