Skip to content
This repository was archived by the owner on Aug 21, 2026. It is now read-only.

Commit 6cd61c9

Browse files
committed
fix issue
1 parent c55d141 commit 6cd61c9

4 files changed

Lines changed: 16 additions & 21 deletions

File tree

composer-dependency-analyser.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,27 @@
2020
// Adjusting scanned paths
2121
->addPathToScan(__DIR__ . '/src', isDev: false)
2222
->addPathToScan(__DIR__ . '/tests', isDev: true)
23-
->addPathToScan(__DIR__ . '/vendor', isDev: false)
24-
->addPathToExclude(__DIR__ . '/vendor/rector/rector')
25-
->addPathToExclude(__DIR__ . '/vendor/phpstan/phpstan')
2623
// applies only to directory scanning, not directly listed files
2724
->setFileExtensions(['php'])
2825

2926
// Ignoring errors in vendor directory
30-
->ignoreErrorsOnPath(__DIR__ . '/vendor', [ErrorType::SHADOW_DEPENDENCY])
31-
->ignoreErrorsOnPath(__DIR__ . '/vendor', [ErrorType::UNKNOWN_FUNCTION])
32-
->ignoreErrorsOnPath(__DIR__ . '/vendor', [ErrorType::UNKNOWN_CLASS])
33-
->ignoreErrorsOnPath(__DIR__ . '/vendor', [ErrorType::DEV_DEPENDENCY_IN_PROD])
3427
->ignoreErrorsOnPath(__DIR__ . '/src', [ErrorType::DEV_DEPENDENCY_IN_PROD])
3528

3629
// do not complain about some modules
3730
->ignoreErrorsOnPackage('mimmi20/coding-standard', [ErrorType::UNUSED_DEPENDENCY])
3831
->ignoreErrorsOnPackage('phpstan/extension-installer', [ErrorType::UNUSED_DEPENDENCY])
3932
->ignoreErrorsOnPackage('phpstan/phpstan-deprecation-rules', [ErrorType::UNUSED_DEPENDENCY])
33+
->ignoreErrorsOnPackage('ergebnis/composer-normalize', [ErrorType::UNUSED_DEPENDENCY])
34+
->ignoreErrorsOnPackage('infection/infection', [ErrorType::UNUSED_DEPENDENCY])
35+
->ignoreErrorsOnPackage('phpstan/phpstan', [ErrorType::UNUSED_DEPENDENCY])
36+
->ignoreErrorsOnPackage('rector/rector', [ErrorType::UNUSED_DEPENDENCY])
37+
->ignoreErrorsOnPackage('shipmonk/composer-dependency-analyser', [ErrorType::UNUSED_DEPENDENCY])
38+
->ignoreErrorsOnPackage('symplify/phpstan-rules', [ErrorType::UNUSED_DEPENDENCY])
39+
->ignoreErrorsOnPackage('tomasvotruba/cognitive-complexity', [ErrorType::UNUSED_DEPENDENCY])
40+
->ignoreErrorsOnPackage('tomasvotruba/type-coverage', [ErrorType::UNUSED_DEPENDENCY])
41+
->ignoreErrorsOnPackage('tomasvotruba/unused-public', [ErrorType::UNUSED_DEPENDENCY])
42+
->ignoreErrorsOnPackage('phpstan/phpstan-phpunit', [ErrorType::UNUSED_DEPENDENCY])
43+
->ignoreErrorsOnPackage('rector/type-perfect', [ErrorType::UNUSED_DEPENDENCY])
4044
->ignoreErrorsOnPackage(
4145
'jbelien/phpstan-sarif-formatter',
4246
[ErrorType::UNUSED_DEPENDENCY],

composer.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,21 @@
2525
"psr/container": "^1.1.2"
2626
},
2727
"require-dev": {
28-
"ext-ctype": "*",
29-
"ext-dom": "*",
30-
"ext-simplexml": "*",
31-
"ext-tokenizer": "*",
32-
"ext-xml": "*",
33-
"ext-xmlwriter": "*",
3428
"ergebnis/composer-normalize": "^2.52.0",
3529
"infection/infection": "^0.34.1",
3630
"jbelien/phpstan-sarif-formatter": "^1.2.0",
3731
"laminas/laminas-modulemanager": "^2.19.0",
3832
"laminas/laminas-servicemanager": "^3.22.1",
3933
"mikey179/vfsstream": "^1.6.12",
4034
"mimmi20/coding-standard": "^6.2.5",
41-
"nikic/php-parser": "^5.8.0",
4235
"phpstan/extension-installer": "^1.4.3",
4336
"phpstan/phpstan": "^2.2.7",
4437
"phpstan/phpstan-deprecation-rules": "^2.0.5",
38+
"phpstan/phpstan-phpunit": "^2.0.16",
4539
"phpunit/phpunit": "^12.5.8",
4640
"rector/rector": "^2.5.9",
4741
"rector/type-perfect": "^2.2.0",
4842
"shipmonk/composer-dependency-analyser": "^1.8.4",
49-
"symfony/process": "^7.3.4",
5043
"symplify/phpstan-rules": "^14.10.0",
5144
"tomasvotruba/cognitive-complexity": "^1.2.0",
5245
"tomasvotruba/type-coverage": "^2.2.1",

rector.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector;
1616
use Rector\DeadCode\Rector\If_\RemoveDeadInstanceOfRector;
1717
use Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector;
18-
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
19-
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
18+
use Rector\DeadCode\Rector\StmtsAwareInterface\RemoveDeadInstanceOfAssertRector;
2019
use Rector\PHPUnit\Set\PHPUnitSetList;
2120
use Rector\Set\ValueObject\LevelSetList;
2221
use Rector\Set\ValueObject\SetList;
@@ -30,16 +29,15 @@
3029
$rectorConfig->sets([
3130
SetList::DEAD_CODE,
3231
LevelSetList::UP_TO_PHP_83,
33-
PHPUnitSetList::PHPUNIT_100,
32+
PHPUnitSetList::PHPUNIT_120,
3433
]);
3534

3635
$rectorConfig->skip(
3736
[
38-
NullToStrictStringFuncCallArgRector::class,
3937
RemoveDeadInstanceOfRector::class,
40-
FirstClassCallableRector::class,
4138
RemoveAlwaysTrueIfConditionRector::class,
4239
RemoveParentCallWithoutParentRector::class,
40+
RemoveDeadInstanceOfAssertRector::class,
4341
],
4442
);
4543
};

tests/View/Helper/ViteUrlTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testFileWithWrongRenderer(): void
8080

8181
$object = new ViteUrl($publicDir, $buildDir);
8282

83-
$view = $this->createMock(RendererInterface::class);
83+
$view = $this->createStub(RendererInterface::class);
8484

8585
$object->setView($view);
8686

0 commit comments

Comments
 (0)