Skip to content

Commit 6beab1a

Browse files
committed
Bump PHPStan level to max
1 parent b71f2bc commit 6beab1a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ includes:
33

44
parameters:
55
tmpDir: build/phpstan
6-
level: 6
6+
level: 8
77
paths:
88
- src
99
- tests

src/Ruleset/AbstractRuleset.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ abstract class AbstractRuleset implements RulesetInterface
4646
/** @inheritDoc */
4747
final public function getName(): string
4848
{
49-
return $this->name ?? trim(strrchr(self::class, '\\'), '\\');
49+
$class = strrchr(self::class, '\\') ?: self::class;
50+
51+
return $this->name ?? trim($class, '\\');
5052
}
5153

5254
/** @inheritDoc */

0 commit comments

Comments
 (0)