Skip to content

Commit b22371b

Browse files
authored
Remove SingleServiceRegistrationRule, drop unused react/promise (#8403)
1 parent 820c9da commit b22371b

12 files changed

Lines changed: 5 additions & 402 deletions

‎composer-dependency-analyser.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
->addPathToScan('bin', false)
1313
// prepared test tooling
1414
->ignoreErrorsOnPackage('phpunit/phpunit', [ErrorType::DEV_DEPENDENCY_IN_PROD])
15-
// pinned v3.x version
16-
->ignoreErrorsOnPackage('react/promise', [ErrorType::UNUSED_DEPENDENCY])
1715
// ensure use version ^3.2.0
1816
->ignoreErrorsOnPackage('composer/pcre', [ErrorType::UNUSED_DEPENDENCY])
1917

‎composer.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"phpstan/phpstan": "^2.2.6",
2828
"react/child-process": "^0.6.5",
2929
"react/event-loop": "^1.6",
30-
"react/promise": "^3.3",
3130
"react/socket": "^1.17",
3231
"rector/extension-installer": "^0.11.2",
3332
"rector/rector-doctrine": "dev-main",
@@ -38,12 +37,12 @@
3837
"symfony/console": "^6.4.24",
3938
"symfony/filesystem": "^8.1",
4039
"symfony/finder": "^8.1",
41-
"symfony/process": "^8.1",
4240
"symplify/rule-doc-generator-contracts": "^11.2",
4341
"webmozart/assert": "^2.4"
4442
},
4543
"require-dev": {
4644
"nette/robot-loader": "^4.1",
45+
"symfony/process": "^8.1",
4746
"php-parallel-lint/php-parallel-lint": "^1.4",
4847
"phpstan/extension-installer": "^1.4",
4948
"phpstan/phpstan-deprecation-rules": "^2.0",

‎phpstan.neon‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ includes:
44

55
rules:
66
- Rector\Utils\PHPStan\Rule\CheaperGuardFirstRule
7-
- Rector\Utils\PHPStan\Rule\SingleServiceRegistrationRule
87
- Rector\Utils\PHPStan\Rule\RegisterRelatedPolyfillRectorRule
98

109
parameters:

‎src/Parallel/CpuCoreCountProvider.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ final class CpuCoreCountProvider
1414
public function provide(): int
1515
{
1616
try {
17-
return new CpuCoreCounter()->getCount();
17+
return new CpuCoreCounter()
18+
->getCount();
1819
} catch (NumberOfCpuCoreNotFound) {
1920
return self::DEFAULT_CORE_COUNT;
2021
}

‎src/VendorLocker/ParentClassMethodTypeOverrideGuard.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
namespace Rector\VendorLocker;
66

7-
use PhpParser\Node\Stmt\Class_;
8-
use PhpParser\Node\Stmt\Interface_;
97
use PhpParser\Node;
8+
use PhpParser\Node\Stmt\Class_;
109
use PhpParser\Node\Stmt\ClassMethod;
10+
use PhpParser\Node\Stmt\Interface_;
1111
use PHPStan\Reflection\ClassReflection;
1212
use PHPStan\Reflection\MethodReflection;
1313
use PHPStan\Type\Type;

‎utils/phpstan/src/Rule/SingleServiceRegistrationRule.php‎

Lines changed: 0 additions & 222 deletions
This file was deleted.

‎utils/phpstan/tests/Rule/SingleServiceRegistrationRule/SingleServiceRegistrationRuleTest.php‎

Lines changed: 0 additions & 43 deletions
This file was deleted.

‎utils/phpstan/tests/Rule/SingleServiceRegistrationRule/Source/DuplicateRegistrationFactory.php‎

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)