Skip to content

Conversation

@ruudk
Copy link
Contributor

@ruudk ruudk commented Dec 16, 2021

No description provided.

@ruudk ruudk force-pushed the patch-2 branch 7 times, most recently from 4f3c89a to 52c22a1 Compare December 18, 2021 11:08
@ruudk
Copy link
Contributor Author

ruudk commented Dec 18, 2021

@ondrejmirtes This is ready. Had to conflict with older version of doctrine/lexer to solve PHP 8.1 compatibility. Also bumped PHPUnit to get rid of PHP 8.1 deprecations.

@ruudk
Copy link
Contributor Author

ruudk commented Dec 18, 2021

While testing this in #238 I think we can better handle this differently.

Will update this PR.

@ruudk ruudk force-pushed the patch-2 branch 3 times, most recently from 4218971 to 40576ea Compare December 18, 2021 12:02
@ruudk
Copy link
Contributor Author

ruudk commented Dec 18, 2021

@ondrejmirtes Ok, I think this is better.

Only 1 problem left, on PHP 7.1 an older version of doctrine/orm is installed and therefore 1 LevelsTestCase test fails:

- "message": "Parameter #1 $className of method Doctrine\\Persistence\\ObjectManager::getRepository() expects class-string<nonexistentClass>, string given.",\n
+ "message": "Parameter #1 $className of method Doctrine\\ORM\\EntityManagerInterface::getRepository() expects class-string<nonexistentClass>, string given.",

Does the LevelsTestCase have a way to switch based on PHP version?

@ruudk ruudk force-pushed the patch-2 branch 3 times, most recently from 6a60aa0 to a5d23a1 Compare December 18, 2021 12:25
@ruudk
Copy link
Contributor Author

ruudk commented Dec 18, 2021

It's finally green. What a hassle. Hope you agree with the changes :)

@ruudk
Copy link
Contributor Author

ruudk commented Dec 30, 2021

@ondrejmirtes can this be merged?

@ondrejmirtes ondrejmirtes merged commit 9f40e7f into phpstan:master Jan 2, 2022
@ondrejmirtes
Copy link
Member

Thank you!

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