Skip to content

Commit

Permalink
fix (ignore) phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
david-d-h committed Dec 12, 2023
1 parent b771887 commit f894ecf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ parameters:
level: 4
paths:
- src
- config
- database
tmpDir: build/phpstan
checkOctaneCompatibility: true
checkModelProperties: true
Expand Down
3 changes: 2 additions & 1 deletion src/Cached.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ final public function handle($event = null): void
[$driver, $ident] = self::parseCacheString($this->cache
?? throw new \Exception('The $cache property in ['.static::class.'] must be overridden'),
);

Cache::driver($driver)->forever($ident,
/** @phpstan-ignore-next-line */
$this->run($event),
);
}
Expand Down Expand Up @@ -120,6 +120,7 @@ final public static function getListenerEvent(): ?string

$concrete = $reflection->getProperty('event')->getDefaultValue();

/** @phpstan-ignore-next-line */
return $concrete ?? ($reflection
->getMethod('run')
->getParameters()[0] ?? null)
Expand Down

0 comments on commit f894ecf

Please sign in to comment.