-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Modernize strpos()
calls
#9480
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
Modernize strpos()
calls
#9480
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The amount of changes you did shows that it was totally worth creating these new functions!
Triggered a new build, this one wasn't starting It seems to be failing because of a signature-compatibility issue, not sure why this was not caught before in #9418 🤔
- Doctrine\Tests\ORM\Functional\ManyToOneOrphanRemovalTest::getEntityManager(
+ Doctrine\Tests\OrmFunctionalTestCase::getEntityManager(
- ?Doctrine\DBAL\Connection $connection = NULL,
+ ?Doctrine\Tests\DbalExtensions\Connection $connection = NULL
?Doctrine\Persistence\Mapping\Driver\MappingDriver $mappingDriver = NULL
): Doctrine\ORM\EntityManagerInterface EDIT: it was in fact occuring, but is just a warning at that point: https://github.com/doctrine/orm/runs/4914222176?check_suite_focus=true Maybe we should use https://phpunit.readthedocs.io/en/9.5/configuration.html?highlight=warning#the-convertwarningstoexceptions-attribute or https://phpunit.readthedocs.io/en/9.5/configuration.html?highlight=warning#the-failonwarning-attribute ? |
In this PR or in another one? |
c9ea3dd
to
6d7dd3a
Compare
Another one would be best I suppose |
The warning did not cause the tests to fail.
I have no idea why this suddenly happens and why only on PHP 7.1. |
@derrabus Looking at the interrupted output of the non-prefer-lowest build, it seems it works better there. So it's probably more related to the |
|
6d7dd3a
to
7499cb2
Compare
Oh, right. I should've checked that. Thanks! |
* 2.12.x: Modernize strpos() calls (doctrine#9480) Fix types on persisters (doctrine#9466) Rename DoctrineSetup to ORMSetup (doctrine#9481) Remove useless catches
PHP 8 introduced nicer function to check if a string contains another string. The PHP 8 polyfill that we're already using should allow us to leverage those function.