Fixes #7527
I've cleaned up some elses when we've already returned something, like #6889, now on develop branch 🚮
PHP-CS-Fixer helped me find them.
isset allow us to pass multiple values to check.
PHP-CS-Fixer helped me on that.
unset allow us to pass multiple values to check.
PHP-CS-Fixer helped me on that.
I recently tweeted about this, but the original questioning comes from @javiereguiluz:
The "Getting started" guide refers to getters and setters as the base of an entity's be…
This will make it easier to contribute. It will also make reviews safer
since you will be able to tell if a PR is reponsible for a broken build
or not. Catching errors early is still possible by having a look at
allowed failures.
Couple things here:
Doctrine\Common\Persistence\ClassMetadata is no longer an ancestor of the ORM metadataom …This PR provides tests for #6189
This is a test case imported from #6190
Created because the issue seemed very bad, but seems invalid after a first glance.
The final Query class is impossible to mock, so to decouple its dependants from it, I refactor->extracted an interface out.
The Doctrine\ORM\Query class is marked as final but does not have a full interface, so mocking it is basically next to impossible.
I propose dropping the final restriction, leaving it commented as it was done in the EntityManager….
Backport of #6177
Fixes #6174
Fixes #5570
This PR aims to solve #4256
I'm starting with the regression test. I've been digging and I believe this has mostly to do with the fact that the orderBy clause is read when UnitOfWork calls the `EntityPersister::loadOneToManyCollect…
PHP files are in weak type-checking mode. Since PHP 7, strict type-checking mode is used for function calls and return statements in the the file.
This PR add support for generate class with are strict_types compliant.
Just noticed this bit of code and I compulsively felt like I had to cover/kill it.
In PHP 5.x + XDebug < 2.4, the output would be "string:..."
In PHP 7.x + XDebug >= 2.4, the output would be "the/file/name.php:11:string:..."
This is an improvement in XDebug that is quite annoying for our purposes, but is actual…