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\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Entity\AccompanyingPeriod\Resource;
@@ -18,7 +27,7 @@ use PHPUnit\Framework\TestCase;
* @internal
* @coversNothing
*/
class ResourceTest extends TestCase
final class ResourceTest extends TestCase
{
public function testSetResource()
{

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\Entity;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
@@ -22,7 +31,7 @@ use function count;
* @internal
* @coversNothing
*/
class AccompanyingPeriodTest extends \PHPUnit\Framework\TestCase
final class AccompanyingPeriodTest extends \PHPUnit\Framework\TestCase
{
public function testClosingEqualOpening()
{

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 Bundle\ChillPersonBundle\Tests\Entity\Household;
use Chill\PersonBundle\Entity\Household\HouseholdMember;
@@ -17,7 +26,7 @@ use PHPUnit\Framework\TestCase;
* @internal
* @coversNothing
*/
class HouseholdMemberTest extends TestCase
final class HouseholdMemberTest extends TestCase
{
public function testPositionDoNotSharehousehold()
{

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\Entity;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
@@ -23,7 +32,7 @@ use DateTimeImmutable;
* @internal
* @coversNothing
*/
class PersonTest extends \PHPUnit\Framework\TestCase
final class PersonTest extends \PHPUnit\Framework\TestCase
{
/**
* Test if the getAccompanyingPeriodsOrdered function, for periods

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\Entity\SocialWork;
use Chill\PersonBundle\Entity\SocialWork\SocialIssue;
@@ -17,7 +26,7 @@ use PHPUnit\Framework\TestCase;
* @internal
* @coversNothing
*/
class SocialIssueTest extends TestCase
final class SocialIssueTest extends TestCase
{
public function testFindSocialIssuesAncestors()
{