Fix some PHPStan errors

This commit is contained in:
Oliver Davies 2024-04-18 20:41:03 +01:00
parent c9d44621ff
commit 89cb9a2283
2 changed files with 9 additions and 9 deletions

8
phpstan.neon Normal file
View file

@ -0,0 +1,8 @@
parameters:
level: max
excludePaths:
- *Test.php
- *TestBase.php
paths:
- web/modules/custom
checkGenericClassInNonGenericObjectType: false

View file

@ -13,15 +13,7 @@ use Drupal\paragraphs\ParagraphInterface;
final class TalkDateUpdater {
private TalkRepository $talkRepository;
private TimeInterface $time;
public function __construct(
TalkRepository $talkRepository,
TimeInterface $time
) {
$this->talkRepository = $talkRepository;
$this->time = $time;
public function __construct(private TalkRepository $talkRepository) {
}
public function __invoke(): void {