Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Upgrade Dead Code Detector to 1.0.0
Co-Authored-By: Claude Code
  • Loading branch information
janedbal committed Apr 8, 2026
commit 575c4faf33b3019bee25bd4dd4efc3e5dfec7780
7 changes: 7 additions & 0 deletions build/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ parameters:
paths:
- ../tests/PHPStan/Fixture
reportUnmatched: false # constants on enums, not reported on PHP8-
-
identifier: shipmonk.deadEnumCase
paths:
- ../tests/PHPStan/Fixture
reportUnmatched: false # enum cases, not reported on PHP8-
-
message: '''
#^Access to constant on deprecated class DeprecatedAnnotations\\DeprecatedFoo\:
Expand Down Expand Up @@ -120,6 +125,8 @@ parameters:
identifier: shipmonk.deadMethod
path: ../src/Internal/CombinationsHelper.php
reportUnmatched: false
-
rawMessage: 'Property PHPStan\Command\CommandHelper::$reservedMemory is never read' # intentional
reportStaticMethodSignatures: true
tmpDir: %rootDir%/tmp
stubFiles:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^11.5.23",
"shipmonk/composer-dependency-analyser": "^1.5",
"shipmonk/dead-code-detector": "^0.14.0",
"shipmonk/dead-code-detector": "^1.0.0",
"shipmonk/name-collision-detector": "^2.0"
},
"config": {
Expand Down
73 changes: 40 additions & 33 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Internal/DirectoryCreatorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
final class DirectoryCreatorException extends Exception
{

public function __construct(public readonly string $directory)
public function __construct(string $directory)
{
$error = error_get_last();

Expand Down
Loading