diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..6e5f71d --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,8 @@ +parameters: + level: max + excludePaths: + - *Test.php + - *TestBase.php + paths: + - web/modules/custom + checkGenericClassInNonGenericObjectType: false diff --git a/web/modules/custom/talks/src/Service/TalkDateUpdater.php b/web/modules/custom/talks/src/Service/TalkDateUpdater.php index 14353ad..05b1f89 100644 --- a/web/modules/custom/talks/src/Service/TalkDateUpdater.php +++ b/web/modules/custom/talks/src/Service/TalkDateUpdater.php @@ -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 {