Skip to content

Commit c86fdde

Browse files
committed
Upgrade Dead Code Detector to 1.0.0
Co-Authored-By: Claude Code
1 parent 53123fa commit c86fdde

File tree

4 files changed

+36
-22
lines changed

4 files changed

+36
-22
lines changed

build/phpstan.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ parameters:
9191
paths:
9292
- ../tests/PHPStan/Fixture
9393
reportUnmatched: false # constants on enums, not reported on PHP8-
94+
-
95+
identifier: shipmonk.deadEnumCase
96+
paths:
97+
- ../tests/PHPStan/Fixture
98+
reportUnmatched: false # enum cases, not reported on PHP8-
9499
-
95100
message: '''
96101
#^Access to constant on deprecated class DeprecatedAnnotations\\DeprecatedFoo\:
@@ -120,6 +125,8 @@ parameters:
120125
identifier: shipmonk.deadMethod
121126
path: ../src/Internal/CombinationsHelper.php
122127
reportUnmatched: false
128+
-
129+
rawMessage: 'Property PHPStan\Command\CommandHelper::$reservedMemory is never read' # intentional
123130
reportStaticMethodSignatures: true
124131
tmpDir: %rootDir%/tmp
125132
stubFiles:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"phpstan/phpstan-strict-rules": "^2.0",
7474
"phpunit/phpunit": "^11.5.23",
7575
"shipmonk/composer-dependency-analyser": "^1.5",
76-
"shipmonk/dead-code-detector": "^0.14.0",
76+
"shipmonk/dead-code-detector": "^1.0.0",
7777
"shipmonk/name-collision-detector": "^2.0"
7878
},
7979
"config": {

composer.lock

Lines changed: 27 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)