Fix some PHPStan errors
This commit is contained in:
parent
c9d44621ff
commit
89cb9a2283
8
phpstan.neon
Normal file
8
phpstan.neon
Normal file
|
@ -0,0 +1,8 @@
|
|||
parameters:
|
||||
level: max
|
||||
excludePaths:
|
||||
- *Test.php
|
||||
- *TestBase.php
|
||||
paths:
|
||||
- web/modules/custom
|
||||
checkGenericClassInNonGenericObjectType: false
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue