Remove strict types in tests, ensure classes are final

This commit is contained in:
Oliver Davies 2020-12-17 23:10:29 +00:00
parent a73adeca41
commit 8591a0f846
6 changed files with 1 additions and 13 deletions

View file

@ -2,8 +2,6 @@
// phpcs:disable Drupal.Commenting.DocComment, Drupal.NamingConventions.ValidFunctionName
declare(strict_types=1);
namespace Drupal\Tests\opdavies_blog\Kernel\Entity\Node;
use Drupal\KernelTests\Core\Entity\EntityKernelTestBase;

View file

@ -2,8 +2,6 @@
// phpcs:disable Drupal.Commenting.DocComment, Drupal.NamingConventions.ValidFunctionName
declare(strict_types=1);
namespace Drupal\Tests\opdavies_talks\Kernel;
use Carbon\Carbon;
@ -11,7 +9,7 @@ use Drupal\node\NodeInterface;
use Drupal\opdavies_talks\Service\TalkCounter;
use PHPUnit\Framework\Assert;
class CountPreviousTalksTest extends TalksTestBase {
final class CountPreviousTalksTest extends TalksTestBase {
private TalkCounter $talkCounter;

View file

@ -1,7 +1,5 @@
<?php
declare(strict_types=1);
namespace Drupal\Tests\opdavies_talks\Kernel;
use Carbon\Carbon;

View file

@ -2,8 +2,6 @@
// phpcs:disable Drupal.Commenting.DocComment, Drupal.NamingConventions.ValidFunctionName
declare(strict_types=1);
namespace Drupal\Tests\opdavies_talks\Kernel;
use Carbon\Carbon;

View file

@ -1,7 +1,5 @@
<?php
declare(strict_types=1);
namespace Drupal\Tests\opdavies_talks\Kernel;
use Drupal\KernelTests\Core\Entity\EntityKernelTestBase;

View file

@ -1,7 +1,5 @@
<?php
declare(strict_types=1);
namespace Drupal\Tests\opdavies_talks\Kernel;
use Carbon\Carbon;