Skip to content

Commit

Permalink
Merge pull request #64 from szepeviktor/patch-1
Browse files Browse the repository at this point in the history
PHPStan extensions run on max :)
  • Loading branch information
shochdoerfer committed Feb 11, 2021
2 parents 0db6e0d + 6a9deec commit e6aeeda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 7
level: max
inferPrivatePropertyTypeFromConstructor: true
fileExtensions:
- php
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function autoload(string $class): void
protected function getFileContents(string $class): string
{
$namespace = explode('\\', ltrim($class, '\\'));
/** @var string $factoryClassname */
$factoryClassname = array_pop($namespace);
$originalClassname = str_replace('Factory', '', $factoryClassname);
$namespace = implode('\\', $namespace);
Expand Down

0 comments on commit e6aeeda

Please sign in to comment.