Skip to content

Commit d62f4a1

Browse files
janedbalstaabm
authored andcommitted
Upgrade Dead Code Detector to 0.15
1 parent d3e3da3 commit d62f4a1

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

build/phpstan.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ parameters:
9090
paths:
9191
- ../tests/PHPStan/Fixture
9292
reportUnmatched: false # constants on enums, not reported on PHP8-
93+
-
94+
identifier: shipmonk.deadEnumCase
95+
paths:
96+
- ../tests/PHPStan/Fixture
97+
-
98+
rawMessage: 'Property PHPStan\Command\CommandHelper::$reservedMemory is never read' # intentional
9399
-
94100
message: '''
95101
#^Access to constant on deprecated class DeprecatedAnnotations\\DeprecatedFoo\:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"phpstan/phpstan-strict-rules": "^2.0",
6767
"phpunit/phpunit": "^11.5.23",
6868
"shipmonk/composer-dependency-analyser": "^1.5",
69-
"shipmonk/dead-code-detector": "^0.14.0",
69+
"shipmonk/dead-code-detector": "^0.15.0",
7070
"shipmonk/name-collision-detector": "^2.0"
7171
},
7272
"config": {

src/Internal/DirectoryCreatorException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
final class DirectoryCreatorException extends Exception
1111
{
1212

13-
public function __construct(public readonly string $directory)
13+
public function __construct(string $directory)
1414
{
1515
$error = error_get_last();
1616

0 commit comments

Comments
 (0)