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

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\PersonBundle\Tests\Export\Aggregator;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
@@ -16,7 +25,7 @@ use DateTime;
* @internal
* @coversNothing
*/
class AgeAggregatorTest extends AbstractAggregatorTest
final class AgeAggregatorTest extends AbstractAggregatorTest
{
/**
* @var \Chill\PersonBundle\Export\Aggregator\AgeAggregator
@@ -25,9 +34,9 @@ class AgeAggregatorTest extends AbstractAggregatorTest
public function setUp()
{
static::bootKernel();
self::bootKernel();
$this->aggregator = static::$container->get('chill.person.export.aggregator_age');
$this->aggregator = self::$container->get('chill.person.export.aggregator_age');
}
public function getAggregator()
@@ -46,11 +55,11 @@ class AgeAggregatorTest extends AbstractAggregatorTest
public function getQueryBuilders()
{
if (null === static::$kernel) {
static::bootKernel();
if (null === self::$kernel) {
self::bootKernel();
}
$em = static::$container
$em = self::$container
->get('doctrine.orm.entity_manager');
return [

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\PersonBundle\Tests\Export\Aggregator;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
@@ -15,7 +24,7 @@ use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
* @internal
* @coversNothing
*/
class GenderAggregatorTest extends AbstractAggregatorTest
final class GenderAggregatorTest extends AbstractAggregatorTest
{
/**
* @var \Chill\PersonBundle\Export\Aggregator\GenderAggregator
@@ -24,9 +33,9 @@ class GenderAggregatorTest extends AbstractAggregatorTest
public function setUp()
{
static::bootKernel();
self::bootKernel();
$this->aggregator = static::$container->get('chill.person.export.aggregator_gender');
$this->aggregator = self::$container->get('chill.person.export.aggregator_gender');
}
public function getAggregator()
@@ -43,11 +52,11 @@ class GenderAggregatorTest extends AbstractAggregatorTest
public function getQueryBuilders()
{
if (null === static::$kernel) {
static::bootKernel();
if (null === self::$kernel) {
self::bootKernel();
}
$em = static::$container
$em = self::$container
->get('doctrine.orm.entity_manager');
return [

View File

@@ -7,6 +7,15 @@
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
/**
* Chill is a software for social workers.
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\PersonBundle\Tests\Export\Aggregator;
use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
@@ -15,7 +24,7 @@ use Chill\MainBundle\Test\Export\AbstractAggregatorTest;
* @internal
* @coversNothing
*/
class NationalityAggregatorTest extends AbstractAggregatorTest
final class NationalityAggregatorTest extends AbstractAggregatorTest
{
/**
* @var \Chill\PersonBundle\Export\Aggregator\NationalityAggregator
@@ -24,9 +33,9 @@ class NationalityAggregatorTest extends AbstractAggregatorTest
public function setUp()
{
static::bootKernel();
self::bootKernel();
$this->aggregator = static::$container->get('chill.person.export.aggregator_nationality');
$this->aggregator = self::$container->get('chill.person.export.aggregator_nationality');
}
public function getAggregator()
@@ -44,11 +53,11 @@ class NationalityAggregatorTest extends AbstractAggregatorTest
public function getQueryBuilders()
{
if (null === static::$kernel) {
static::bootKernel();
if (null === self::$kernel) {
self::bootKernel();
}
$em = static::$container
$em = self::$container
->get('doctrine.orm.entity_manager');
return [