cs: Switch to a stricter way of coding - this might break in a lot of places.

This commit is contained in:
Pol Dellaiera
2021-11-30 13:33:18 +01:00
parent 28d2c42454
commit 47c5855a21
957 changed files with 9025 additions and 568 deletions

View File

@@ -26,7 +26,7 @@ use function random_int;
* @internal
* @coversNothing
*/
class RelationshipApiControllerTest extends WebTestCase
final class RelationshipApiControllerTest extends WebTestCase
{
use PrepareClientTrait;
@@ -41,13 +41,13 @@ class RelationshipApiControllerTest extends WebTestCase
public function setUp()
{
static::bootKernel();
self::bootKernel();
$this->client = $this->getClientAuthenticated();
}
public function personProvider(): array
{
static::bootKernel();
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
$countPersons = $em->createQueryBuilder()
->select('count(p)')
@@ -75,7 +75,7 @@ class RelationshipApiControllerTest extends WebTestCase
public function relationProvider(): array
{
static::bootKernel();
self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class);
$countPersons = $em->createQueryBuilder()
->select('count(p)')