mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 9e321a11ac21440a33abef87add34945a1490b8f
9e321a11ac
[TypeDeclaration] Add PropertyTypeFromStrictSetterGetterRector (#3313)
This commit is contained in:
parent
f0d1fd41e5
commit
297478ae00
|
@ -7,7 +7,7 @@
|
|||
],
|
||||
"require": {
|
||||
"php": "^7.2|^8.0",
|
||||
"phpstan/phpstan": "^1.9.7"
|
||||
"phpstan/phpstan": "^1.9.14"
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
|
|
|
@ -6,6 +6,7 @@ namespace RectorPrefix202301;
|
|||
use Rector\CodeQuality\Rector\ClassMethod\ReturnTypeFromStrictScalarReturnExprRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector;
|
||||
use Rector\TypeDeclaration\Rector\Class_\PropertyTypeFromStrictSetterGetterRector;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeBasedOnPHPUnitDataProviderRector;
|
||||
use Rector\TypeDeclaration\Rector\ClassMethod\AddParamTypeFromPropertyTypeRector;
|
||||
|
@ -36,5 +37,5 @@ use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictGetterMethodRe
|
|||
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictSetUpRector;
|
||||
use Rector\TypeDeclaration\Rector\Property\VarAnnotationIncorrectNullableRector;
|
||||
return static function (RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->rules([AddClosureReturnTypeRector::class, AddArrowFunctionReturnTypeRector::class, ParamTypeByMethodCallTypeRector::class, TypedPropertyFromAssignsRector::class, ReturnAnnotationIncorrectNullableRector::class, VarAnnotationIncorrectNullableRector::class, ParamAnnotationIncorrectNullableRector::class, AddReturnTypeDeclarationBasedOnParentClassMethodRector::class, ReturnTypeFromStrictTypedPropertyRector::class, TypedPropertyFromStrictConstructorRector::class, ParamTypeFromStrictTypedPropertyRector::class, AddVoidReturnTypeWhereNoReturnRector::class, ReturnTypeFromReturnNewRector::class, TypedPropertyFromStrictGetterMethodReturnTypeRector::class, AddMethodCallBasedStrictParamTypeRector::class, ArrayShapeFromConstantArrayReturnRector::class, ReturnTypeFromStrictBoolReturnExprRector::class, ReturnTypeFromStrictNativeCallRector::class, ReturnTypeFromStrictNewArrayRector::class, ReturnTypeFromStrictScalarReturnExprRector::class, TypedPropertyFromStrictSetUpRector::class, ParamTypeByParentCallTypeRector::class, AddParamTypeSplFixedArrayRector::class, AddParamTypeBasedOnPHPUnitDataProviderRector::class, AddParamTypeFromPropertyTypeRector::class, AddReturnTypeDeclarationFromYieldsRector::class, ReturnTypeFromReturnDirectArrayRector::class, ReturnTypeFromStrictConstantReturnRector::class, ReturnTypeFromStrictTypedCallRector::class, ReturnNeverTypeRector::class, EmptyOnNullableObjectToInstanceOfRector::class]);
|
||||
$rectorConfig->rules([AddClosureReturnTypeRector::class, AddArrowFunctionReturnTypeRector::class, ParamTypeByMethodCallTypeRector::class, TypedPropertyFromAssignsRector::class, ReturnAnnotationIncorrectNullableRector::class, VarAnnotationIncorrectNullableRector::class, ParamAnnotationIncorrectNullableRector::class, AddReturnTypeDeclarationBasedOnParentClassMethodRector::class, ReturnTypeFromStrictTypedPropertyRector::class, TypedPropertyFromStrictConstructorRector::class, ParamTypeFromStrictTypedPropertyRector::class, AddVoidReturnTypeWhereNoReturnRector::class, ReturnTypeFromReturnNewRector::class, TypedPropertyFromStrictGetterMethodReturnTypeRector::class, AddMethodCallBasedStrictParamTypeRector::class, ArrayShapeFromConstantArrayReturnRector::class, ReturnTypeFromStrictBoolReturnExprRector::class, ReturnTypeFromStrictNativeCallRector::class, ReturnTypeFromStrictNewArrayRector::class, ReturnTypeFromStrictScalarReturnExprRector::class, TypedPropertyFromStrictSetUpRector::class, ParamTypeByParentCallTypeRector::class, AddParamTypeSplFixedArrayRector::class, AddParamTypeBasedOnPHPUnitDataProviderRector::class, AddParamTypeFromPropertyTypeRector::class, AddReturnTypeDeclarationFromYieldsRector::class, ReturnTypeFromReturnDirectArrayRector::class, ReturnTypeFromStrictConstantReturnRector::class, ReturnTypeFromStrictTypedCallRector::class, ReturnNeverTypeRector::class, EmptyOnNullableObjectToInstanceOfRector::class, PropertyTypeFromStrictSetterGetterRector::class]);
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# 420 Rules Overview
|
||||
# 421 Rules Overview
|
||||
|
||||
<br>
|
||||
|
||||
|
@ -64,7 +64,7 @@
|
|||
|
||||
- [Transform](#transform) (34)
|
||||
|
||||
- [TypeDeclaration](#typedeclaration) (39)
|
||||
- [TypeDeclaration](#typedeclaration) (40)
|
||||
|
||||
- [Visibility](#visibility) (3)
|
||||
|
||||
|
@ -9481,6 +9481,32 @@ Add `@var` to properties that are missing it
|
|||
|
||||
<br>
|
||||
|
||||
### PropertyTypeFromStrictSetterGetterRector
|
||||
|
||||
Add property type based on strict setter and getter method
|
||||
|
||||
- class: [`Rector\TypeDeclaration\Rector\Class_\PropertyTypeFromStrictSetterGetterRector`](../rules/TypeDeclaration/Rector/Class_/PropertyTypeFromStrictSetterGetterRector.php)
|
||||
|
||||
```diff
|
||||
final class SomeClass
|
||||
{
|
||||
- private $name = 'John';
|
||||
+ private string $name = 'John';
|
||||
|
||||
public function setName(string $name): void
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### ReturnAnnotationIncorrectNullableRector
|
||||
|
||||
Add or remove null type from `@return` phpdoc typehint based on php return type declaration
|
||||
|
|
|
@ -3,8 +3,11 @@
|
|||
declare (strict_types=1);
|
||||
namespace Rector\TypeDeclaration\NodeAnalyzer;
|
||||
|
||||
use PhpParser\Node\Expr\Assign;
|
||||
use PhpParser\Node\Expr\PropertyFetch;
|
||||
use PhpParser\Node\Expr\Variable;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Expression;
|
||||
use PhpParser\Node\Stmt\Return_;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
final class ClassMethodAndPropertyAnalyzer
|
||||
|
@ -18,7 +21,7 @@ final class ClassMethodAndPropertyAnalyzer
|
|||
{
|
||||
$this->nodeNameResolver = $nodeNameResolver;
|
||||
}
|
||||
public function hasClassMethodOnlyStatementReturnOfPropertyFetch(ClassMethod $classMethod, string $propertyName) : bool
|
||||
public function hasPropertyFetchReturn(ClassMethod $classMethod, string $propertyName) : bool
|
||||
{
|
||||
$stmts = (array) $classMethod->stmts;
|
||||
if (\count($stmts) !== 1) {
|
||||
|
@ -35,4 +38,34 @@ final class ClassMethodAndPropertyAnalyzer
|
|||
}
|
||||
return $this->nodeNameResolver->isName($return->expr, $propertyName);
|
||||
}
|
||||
public function hasOnlyPropertyAssign(ClassMethod $classMethod, string $propertyName) : bool
|
||||
{
|
||||
$stmts = (array) $classMethod->stmts;
|
||||
if (\count($stmts) !== 1) {
|
||||
return \false;
|
||||
}
|
||||
$onlyClassMethodStmt = $stmts[0] ?? null;
|
||||
if (!$onlyClassMethodStmt instanceof Expression) {
|
||||
return \false;
|
||||
}
|
||||
if (!$onlyClassMethodStmt->expr instanceof Assign) {
|
||||
return \false;
|
||||
}
|
||||
$assign = $onlyClassMethodStmt->expr;
|
||||
if (!$assign->expr instanceof Variable) {
|
||||
return \false;
|
||||
}
|
||||
if (!$this->nodeNameResolver->isName($assign->expr, $propertyName)) {
|
||||
return \false;
|
||||
}
|
||||
$assignVar = $assign->var;
|
||||
if (!$assignVar instanceof PropertyFetch) {
|
||||
return \false;
|
||||
}
|
||||
$propertyFetch = $assignVar;
|
||||
if (!$this->nodeNameResolver->isName($propertyFetch->var, 'this')) {
|
||||
return \false;
|
||||
}
|
||||
return $this->nodeNameResolver->isName($propertyFetch->name, $propertyName);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,143 @@
|
|||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\TypeDeclaration\Rector\Class_;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Stmt\Class_;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use PHPStan\Type\Type;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Core\ValueObject\PhpVersionFeature;
|
||||
use Rector\PHPStanStaticTypeMapper\Enum\TypeKind;
|
||||
use Rector\TypeDeclaration\TypeInferer\PropertyTypeInferer\GetterTypeDeclarationPropertyTypeInferer;
|
||||
use Rector\TypeDeclaration\TypeInferer\PropertyTypeInferer\SetterTypeDeclarationPropertyTypeInferer;
|
||||
use Rector\VersionBonding\Contract\MinPhpVersionInterface;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
/**
|
||||
* @see \Rector\Tests\TypeDeclaration\Rector\Class_\PropertyTypeFromStrictSetterGetterRector\PropertyTypeFromStrictSetterGetterRectorTest
|
||||
*/
|
||||
final class PropertyTypeFromStrictSetterGetterRector extends AbstractRector implements MinPhpVersionInterface
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\TypeDeclaration\TypeInferer\PropertyTypeInferer\GetterTypeDeclarationPropertyTypeInferer
|
||||
*/
|
||||
private $getterTypeDeclarationPropertyTypeInferer;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\TypeDeclaration\TypeInferer\PropertyTypeInferer\SetterTypeDeclarationPropertyTypeInferer
|
||||
*/
|
||||
private $setterTypeDeclarationPropertyTypeInferer;
|
||||
public function __construct(GetterTypeDeclarationPropertyTypeInferer $getterTypeDeclarationPropertyTypeInferer, SetterTypeDeclarationPropertyTypeInferer $setterTypeDeclarationPropertyTypeInferer)
|
||||
{
|
||||
$this->getterTypeDeclarationPropertyTypeInferer = $getterTypeDeclarationPropertyTypeInferer;
|
||||
$this->setterTypeDeclarationPropertyTypeInferer = $setterTypeDeclarationPropertyTypeInferer;
|
||||
}
|
||||
public function getRuleDefinition() : RuleDefinition
|
||||
{
|
||||
return new RuleDefinition('Add property type based on strict setter and getter method', [new CodeSample(<<<'CODE_SAMPLE'
|
||||
final class SomeClass
|
||||
{
|
||||
private $name = 'John';
|
||||
|
||||
public function setName(string $name): void
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
CODE_SAMPLE
|
||||
, <<<'CODE_SAMPLE'
|
||||
final class SomeClass
|
||||
{
|
||||
private string $name = 'John';
|
||||
|
||||
public function setName(string $name): void
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
CODE_SAMPLE
|
||||
)]);
|
||||
}
|
||||
/**
|
||||
* @return array<class-string<Node>>
|
||||
*/
|
||||
public function getNodeTypes() : array
|
||||
{
|
||||
return [Class_::class];
|
||||
}
|
||||
/**
|
||||
* @param Class_ $node
|
||||
*/
|
||||
public function refactor(Node $node) : ?Node
|
||||
{
|
||||
$hasChanged = \false;
|
||||
foreach ($node->getProperties() as $property) {
|
||||
if ($property->type instanceof Node) {
|
||||
continue;
|
||||
}
|
||||
if (!$property->isPrivate()) {
|
||||
continue;
|
||||
}
|
||||
$getterSetterPropertyType = $this->matchGetterSetterIdenticalType($property, $node);
|
||||
if (!$getterSetterPropertyType instanceof Type) {
|
||||
continue;
|
||||
}
|
||||
if (!$this->isDefaultExprTypeCompatible($property, $getterSetterPropertyType)) {
|
||||
continue;
|
||||
}
|
||||
$propertyTypeDclaration = $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($getterSetterPropertyType, TypeKind::PROPERTY);
|
||||
if (!$propertyTypeDclaration instanceof Node) {
|
||||
continue;
|
||||
}
|
||||
$property->type = $propertyTypeDclaration;
|
||||
$hasChanged = \true;
|
||||
}
|
||||
if ($hasChanged) {
|
||||
return $node;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public function provideMinPhpVersion() : int
|
||||
{
|
||||
return PhpVersionFeature::TYPED_PROPERTIES;
|
||||
}
|
||||
private function matchGetterSetterIdenticalType(Property $property, Class_ $class) : ?Type
|
||||
{
|
||||
$getterBasedStrictType = $this->getterTypeDeclarationPropertyTypeInferer->inferProperty($property, $class);
|
||||
if (!$getterBasedStrictType instanceof Type) {
|
||||
return null;
|
||||
}
|
||||
$setterBasedStrictType = $this->setterTypeDeclarationPropertyTypeInferer->inferProperty($property, $class);
|
||||
if (!$setterBasedStrictType instanceof Type) {
|
||||
return null;
|
||||
}
|
||||
if (!$getterBasedStrictType->equals($setterBasedStrictType)) {
|
||||
return null;
|
||||
}
|
||||
return $getterBasedStrictType;
|
||||
}
|
||||
private function isDefaultExprTypeCompatible(Property $property, Type $getterSetterPropertyType) : bool
|
||||
{
|
||||
$defaultExpr = $property->props[0]->default ?? null;
|
||||
// make sure default value is not a conflicting type
|
||||
if (!$defaultExpr instanceof Node) {
|
||||
// no value = no problem :)
|
||||
return \true;
|
||||
}
|
||||
$defaultExprType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($defaultExpr);
|
||||
return $defaultExprType->equals($getterSetterPropertyType);
|
||||
}
|
||||
}
|
|
@ -89,7 +89,7 @@ CODE_SAMPLE
|
|||
if ($this->shouldSkipProperty($property, $node)) {
|
||||
continue;
|
||||
}
|
||||
$getterReturnType = $this->getterTypeDeclarationPropertyTypeInferer->inferProperty($property);
|
||||
$getterReturnType = $this->getterTypeDeclarationPropertyTypeInferer->inferProperty($property, $node);
|
||||
if (!$getterReturnType instanceof Type) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@ declare (strict_types=1);
|
|||
namespace Rector\TypeDeclaration\TypeInferer\PropertyTypeInferer;
|
||||
|
||||
use PhpParser\Node\Stmt\Class_;
|
||||
use PhpParser\Node\Stmt\ClassLike;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use PHPStan\Type\MixedType;
|
||||
use PHPStan\Type\Type;
|
||||
|
@ -29,29 +28,18 @@ final class GetterTypeDeclarationPropertyTypeInferer
|
|||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Core\PhpParser\Node\BetterNodeFinder
|
||||
*/
|
||||
private $betterNodeFinder;
|
||||
public function __construct(FunctionLikeReturnTypeResolver $functionLikeReturnTypeResolver, ClassMethodAndPropertyAnalyzer $classMethodAndPropertyAnalyzer, NodeNameResolver $nodeNameResolver, BetterNodeFinder $betterNodeFinder)
|
||||
public function __construct(FunctionLikeReturnTypeResolver $functionLikeReturnTypeResolver, ClassMethodAndPropertyAnalyzer $classMethodAndPropertyAnalyzer, NodeNameResolver $nodeNameResolver)
|
||||
{
|
||||
$this->functionLikeReturnTypeResolver = $functionLikeReturnTypeResolver;
|
||||
$this->classMethodAndPropertyAnalyzer = $classMethodAndPropertyAnalyzer;
|
||||
$this->nodeNameResolver = $nodeNameResolver;
|
||||
$this->betterNodeFinder = $betterNodeFinder;
|
||||
}
|
||||
public function inferProperty(Property $property) : ?Type
|
||||
public function inferProperty(Property $property, Class_ $class) : ?Type
|
||||
{
|
||||
$classLike = $this->betterNodeFinder->findParentType($property, ClassLike::class);
|
||||
if (!$classLike instanceof Class_) {
|
||||
// anonymous class
|
||||
return null;
|
||||
}
|
||||
/** @var string $propertyName */
|
||||
$propertyName = $this->nodeNameResolver->getName($property);
|
||||
foreach ($classLike->getMethods() as $classMethod) {
|
||||
if (!$this->classMethodAndPropertyAnalyzer->hasClassMethodOnlyStatementReturnOfPropertyFetch($classMethod, $propertyName)) {
|
||||
foreach ($class->getMethods() as $classMethod) {
|
||||
if (!$this->classMethodAndPropertyAnalyzer->hasPropertyFetchReturn($classMethod, $propertyName)) {
|
||||
continue;
|
||||
}
|
||||
$returnType = $this->functionLikeReturnTypeResolver->resolveFunctionLikeReturnTypeToPHPStanType($classMethod);
|
||||
|
|
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\TypeDeclaration\TypeInferer\PropertyTypeInferer;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Stmt\Class_;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use PHPStan\Type\MixedType;
|
||||
use PHPStan\Type\Type;
|
||||
use Rector\NodeNameResolver\NodeNameResolver;
|
||||
use Rector\StaticTypeMapper\StaticTypeMapper;
|
||||
use Rector\TypeDeclaration\NodeAnalyzer\ClassMethodAndPropertyAnalyzer;
|
||||
final class SetterTypeDeclarationPropertyTypeInferer
|
||||
{
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\TypeDeclaration\NodeAnalyzer\ClassMethodAndPropertyAnalyzer
|
||||
*/
|
||||
private $classMethodAndPropertyAnalyzer;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\NodeNameResolver\NodeNameResolver
|
||||
*/
|
||||
private $nodeNameResolver;
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||
*/
|
||||
private $staticTypeMapper;
|
||||
public function __construct(ClassMethodAndPropertyAnalyzer $classMethodAndPropertyAnalyzer, NodeNameResolver $nodeNameResolver, StaticTypeMapper $staticTypeMapper)
|
||||
{
|
||||
$this->classMethodAndPropertyAnalyzer = $classMethodAndPropertyAnalyzer;
|
||||
$this->nodeNameResolver = $nodeNameResolver;
|
||||
$this->staticTypeMapper = $staticTypeMapper;
|
||||
}
|
||||
public function inferProperty(Property $property, Class_ $class) : ?Type
|
||||
{
|
||||
/** @var string $propertyName */
|
||||
$propertyName = $this->nodeNameResolver->getName($property);
|
||||
foreach ($class->getMethods() as $classMethod) {
|
||||
if (!$this->classMethodAndPropertyAnalyzer->hasOnlyPropertyAssign($classMethod, $propertyName)) {
|
||||
continue;
|
||||
}
|
||||
$paramTypeNode = $classMethod->params[0]->type ?? null;
|
||||
if (!$paramTypeNode instanceof Node) {
|
||||
return null;
|
||||
}
|
||||
$paramType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($paramTypeNode);
|
||||
// let PhpDoc solve that later for more precise type
|
||||
if ($paramType->isArray()->yes()) {
|
||||
return new MixedType();
|
||||
}
|
||||
if (!$paramType instanceof MixedType) {
|
||||
return $paramType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '3555ee38b86510be3f9ccb35fbcc8ac080b02b70';
|
||||
public const PACKAGE_VERSION = '9e321a11ac21440a33abef87add34945a1490b8f';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-01-28 16:25:02';
|
||||
public const RELEASE_DATE = '2023-01-28 16:15:21';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit616801712b488d000f4f43376ec7e0fb::getLoader();
|
||||
return ComposerAutoloaderInit0882b32a2fe25828ad06422731cb8c5b::getLoader();
|
||||
|
|
|
@ -2767,6 +2767,7 @@ return array(
|
|||
'Rector\\TypeDeclaration\\Rector\\ClassMethod\\ReturnTypeFromStrictNewArrayRector' => $baseDir . '/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictNewArrayRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\ClassMethod\\ReturnTypeFromStrictTypedCallRector' => $baseDir . '/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\ClassMethod\\ReturnTypeFromStrictTypedPropertyRector' => $baseDir . '/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedPropertyRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\Class_\\PropertyTypeFromStrictSetterGetterRector' => $baseDir . '/rules/TypeDeclaration/Rector/Class_/PropertyTypeFromStrictSetterGetterRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\Closure\\AddClosureReturnTypeRector' => $baseDir . '/rules/TypeDeclaration/Rector/Closure/AddClosureReturnTypeRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\Empty_\\EmptyOnNullableObjectToInstanceOfRector' => $baseDir . '/rules/TypeDeclaration/Rector/Empty_/EmptyOnNullableObjectToInstanceOfRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\FunctionLike\\AddParamTypeSplFixedArrayRector' => $baseDir . '/rules/TypeDeclaration/Rector/FunctionLike/AddParamTypeSplFixedArrayRector.php',
|
||||
|
@ -2789,6 +2790,7 @@ return array(
|
|||
'Rector\\TypeDeclaration\\TypeInferer\\AssignToPropertyTypeInferer' => $baseDir . '/rules/TypeDeclaration/TypeInferer/AssignToPropertyTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\PropertyTypeInferer\\AllAssignNodePropertyTypeInferer' => $baseDir . '/rules/TypeDeclaration/TypeInferer/PropertyTypeInferer/AllAssignNodePropertyTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\PropertyTypeInferer\\GetterTypeDeclarationPropertyTypeInferer' => $baseDir . '/rules/TypeDeclaration/TypeInferer/PropertyTypeInferer/GetterTypeDeclarationPropertyTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\PropertyTypeInferer\\SetterTypeDeclarationPropertyTypeInferer' => $baseDir . '/rules/TypeDeclaration/TypeInferer/PropertyTypeInferer/SetterTypeDeclarationPropertyTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\PropertyTypeInferer\\TrustedClassMethodPropertyTypeInferer' => $baseDir . '/rules/TypeDeclaration/TypeInferer/PropertyTypeInferer/TrustedClassMethodPropertyTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\ReturnTypeInferer' => $baseDir . '/rules/TypeDeclaration/TypeInferer/ReturnTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\ReturnTypeInferer\\ReturnedNodesReturnTypeInfererTypeInferer' => $baseDir . '/rules/TypeDeclaration/TypeInferer/ReturnTypeInferer/ReturnedNodesReturnTypeInfererTypeInferer.php',
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit616801712b488d000f4f43376ec7e0fb
|
||||
class ComposerAutoloaderInit0882b32a2fe25828ad06422731cb8c5b
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,17 +22,17 @@ class ComposerAutoloaderInit616801712b488d000f4f43376ec7e0fb
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit616801712b488d000f4f43376ec7e0fb', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit0882b32a2fe25828ad06422731cb8c5b', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit616801712b488d000f4f43376ec7e0fb', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit0882b32a2fe25828ad06422731cb8c5b', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit616801712b488d000f4f43376ec7e0fb::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit0882b32a2fe25828ad06422731cb8c5b::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit616801712b488d000f4f43376ec7e0fb::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit0882b32a2fe25828ad06422731cb8c5b::$files;
|
||||
$requireFile = static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit616801712b488d000f4f43376ec7e0fb
|
||||
class ComposerStaticInit0882b32a2fe25828ad06422731cb8c5b
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
|
@ -3012,6 +3012,7 @@ class ComposerStaticInit616801712b488d000f4f43376ec7e0fb
|
|||
'Rector\\TypeDeclaration\\Rector\\ClassMethod\\ReturnTypeFromStrictNewArrayRector' => __DIR__ . '/../..' . '/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictNewArrayRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\ClassMethod\\ReturnTypeFromStrictTypedCallRector' => __DIR__ . '/../..' . '/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\ClassMethod\\ReturnTypeFromStrictTypedPropertyRector' => __DIR__ . '/../..' . '/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedPropertyRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\Class_\\PropertyTypeFromStrictSetterGetterRector' => __DIR__ . '/../..' . '/rules/TypeDeclaration/Rector/Class_/PropertyTypeFromStrictSetterGetterRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\Closure\\AddClosureReturnTypeRector' => __DIR__ . '/../..' . '/rules/TypeDeclaration/Rector/Closure/AddClosureReturnTypeRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\Empty_\\EmptyOnNullableObjectToInstanceOfRector' => __DIR__ . '/../..' . '/rules/TypeDeclaration/Rector/Empty_/EmptyOnNullableObjectToInstanceOfRector.php',
|
||||
'Rector\\TypeDeclaration\\Rector\\FunctionLike\\AddParamTypeSplFixedArrayRector' => __DIR__ . '/../..' . '/rules/TypeDeclaration/Rector/FunctionLike/AddParamTypeSplFixedArrayRector.php',
|
||||
|
@ -3034,6 +3035,7 @@ class ComposerStaticInit616801712b488d000f4f43376ec7e0fb
|
|||
'Rector\\TypeDeclaration\\TypeInferer\\AssignToPropertyTypeInferer' => __DIR__ . '/../..' . '/rules/TypeDeclaration/TypeInferer/AssignToPropertyTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\PropertyTypeInferer\\AllAssignNodePropertyTypeInferer' => __DIR__ . '/../..' . '/rules/TypeDeclaration/TypeInferer/PropertyTypeInferer/AllAssignNodePropertyTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\PropertyTypeInferer\\GetterTypeDeclarationPropertyTypeInferer' => __DIR__ . '/../..' . '/rules/TypeDeclaration/TypeInferer/PropertyTypeInferer/GetterTypeDeclarationPropertyTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\PropertyTypeInferer\\SetterTypeDeclarationPropertyTypeInferer' => __DIR__ . '/../..' . '/rules/TypeDeclaration/TypeInferer/PropertyTypeInferer/SetterTypeDeclarationPropertyTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\PropertyTypeInferer\\TrustedClassMethodPropertyTypeInferer' => __DIR__ . '/../..' . '/rules/TypeDeclaration/TypeInferer/PropertyTypeInferer/TrustedClassMethodPropertyTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\ReturnTypeInferer' => __DIR__ . '/../..' . '/rules/TypeDeclaration/TypeInferer/ReturnTypeInferer.php',
|
||||
'Rector\\TypeDeclaration\\TypeInferer\\ReturnTypeInferer\\ReturnedNodesReturnTypeInfererTypeInferer' => __DIR__ . '/../..' . '/rules/TypeDeclaration/TypeInferer/ReturnTypeInferer/ReturnedNodesReturnTypeInfererTypeInferer.php',
|
||||
|
@ -3078,9 +3080,9 @@ class ComposerStaticInit616801712b488d000f4f43376ec7e0fb
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit616801712b488d000f4f43376ec7e0fb::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit616801712b488d000f4f43376ec7e0fb::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit616801712b488d000f4f43376ec7e0fb::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit0882b32a2fe25828ad06422731cb8c5b::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit0882b32a2fe25828ad06422731cb8c5b::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit0882b32a2fe25828ad06422731cb8c5b::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
|
@ -3041,21 +3041,21 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/easy-parallel",
|
||||
"version": "11.1.24",
|
||||
"version_normalized": "11.1.24.0",
|
||||
"version": "11.1.25",
|
||||
"version_normalized": "11.1.25.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/easy-parallel.git",
|
||||
"reference": "1a4cb5a7e877257591d41a97384b18754a301e61"
|
||||
"reference": "9df48fbeafe281fdc3a77f0308e29ce44d9af2c4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/easy-parallel\/zipball\/1a4cb5a7e877257591d41a97384b18754a301e61",
|
||||
"reference": "1a4cb5a7e877257591d41a97384b18754a301e61",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/easy-parallel\/zipball\/9df48fbeafe281fdc3a77f0308e29ce44d9af2c4",
|
||||
"reference": "9df48fbeafe281fdc3a77f0308e29ce44d9af2c4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"clue\/ndjson-react": "^1.2",
|
||||
"clue\/ndjson-react": "^1.3",
|
||||
"fidry\/cpu-core-counter": "^0.4.0",
|
||||
"php": ">=8.1",
|
||||
"react\/child-process": "^0.6.5",
|
||||
|
@ -3064,29 +3064,27 @@
|
|||
"symfony\/console": "^6.2"
|
||||
},
|
||||
"conflict": {
|
||||
"symplify\/autowire-array-parameter": "<11.1.24",
|
||||
"symplify\/autowire-array-parameter": "<11.1.25",
|
||||
"symplify\/coding-standard": "<11.1.24",
|
||||
"symplify\/config-transformer": "<11.1.24",
|
||||
"symplify\/easy-ci": "<11.1.24",
|
||||
"symplify\/easy-coding-standard": "<11.1.24",
|
||||
"symplify\/easy-testing": "<11.1.24",
|
||||
"symplify\/easy-testing": "<11.1.25",
|
||||
"symplify\/monorepo-builder": "<11.1.24",
|
||||
"symplify\/package-builder": "<11.1.24",
|
||||
"symplify\/php-config-printer": "<11.1.24",
|
||||
"symplify\/phpstan-extensions": "<11.1.24",
|
||||
"symplify\/package-builder": "<11.1.25",
|
||||
"symplify\/php-config-printer": "<11.1.25",
|
||||
"symplify\/phpstan-extensions": "<11.1.25",
|
||||
"symplify\/phpstan-rules": "<11.1.24",
|
||||
"symplify\/rule-doc-generator": "<11.1.24",
|
||||
"symplify\/rule-doc-generator-contracts": "<11.1.24",
|
||||
"symplify\/smart-file-system": "<11.1.24",
|
||||
"symplify\/symfony-static-dumper": "<11.1.24",
|
||||
"symplify\/symplify-kernel": "<11.1.24",
|
||||
"symplify\/vendor-patches": "<11.1.24"
|
||||
"symplify\/rule-doc-generator": "<11.1.25",
|
||||
"symplify\/rule-doc-generator-contracts": "<11.1.25",
|
||||
"symplify\/smart-file-system": "<11.1.25",
|
||||
"symplify\/symfony-static-dumper": "<11.1.25",
|
||||
"symplify\/symplify-kernel": "<11.1.25"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5.26",
|
||||
"symplify\/package-builder": "^11.1.24"
|
||||
"symplify\/package-builder": "^11.1.25"
|
||||
},
|
||||
"time": "2022-12-23T15:00:54+00:00",
|
||||
"time": "2023-01-28T10:13:28+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -3106,23 +3104,23 @@
|
|||
"description": "Helper package for easier CLI project parallelization",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/symplify\/easy-parallel\/issues",
|
||||
"source": "https:\/\/github.com\/symplify\/easy-parallel\/tree\/11.1.24"
|
||||
"source": "https:\/\/github.com\/symplify\/easy-parallel\/tree\/11.1.25"
|
||||
},
|
||||
"install-path": "..\/symplify\/easy-parallel"
|
||||
},
|
||||
{
|
||||
"name": "symplify\/rule-doc-generator-contracts",
|
||||
"version": "11.1.24",
|
||||
"version_normalized": "11.1.24.0",
|
||||
"version": "11.1.25",
|
||||
"version_normalized": "11.1.25.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/rule-doc-generator-contracts.git",
|
||||
"reference": "822896f06a0cdb8effbf5371459d8fffd24a4eab"
|
||||
"reference": "05b78c1e832bd2427af080368f2b0d886af360f8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/rule-doc-generator-contracts\/zipball\/822896f06a0cdb8effbf5371459d8fffd24a4eab",
|
||||
"reference": "822896f06a0cdb8effbf5371459d8fffd24a4eab",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/rule-doc-generator-contracts\/zipball\/05b78c1e832bd2427af080368f2b0d886af360f8",
|
||||
"reference": "05b78c1e832bd2427af080368f2b0d886af360f8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -3130,25 +3128,23 @@
|
|||
"php": ">=8.1"
|
||||
},
|
||||
"conflict": {
|
||||
"symplify\/autowire-array-parameter": "<11.1.24",
|
||||
"symplify\/autowire-array-parameter": "<11.1.25",
|
||||
"symplify\/coding-standard": "<11.1.24",
|
||||
"symplify\/config-transformer": "<11.1.24",
|
||||
"symplify\/easy-ci": "<11.1.24",
|
||||
"symplify\/easy-coding-standard": "<11.1.24",
|
||||
"symplify\/easy-parallel": "<11.1.24",
|
||||
"symplify\/easy-testing": "<11.1.24",
|
||||
"symplify\/easy-parallel": "<11.1.25",
|
||||
"symplify\/easy-testing": "<11.1.25",
|
||||
"symplify\/monorepo-builder": "<11.1.24",
|
||||
"symplify\/package-builder": "<11.1.24",
|
||||
"symplify\/php-config-printer": "<11.1.24",
|
||||
"symplify\/phpstan-extensions": "<11.1.24",
|
||||
"symplify\/package-builder": "<11.1.25",
|
||||
"symplify\/php-config-printer": "<11.1.25",
|
||||
"symplify\/phpstan-extensions": "<11.1.25",
|
||||
"symplify\/phpstan-rules": "<11.1.24",
|
||||
"symplify\/rule-doc-generator": "<11.1.24",
|
||||
"symplify\/smart-file-system": "<11.1.24",
|
||||
"symplify\/symfony-static-dumper": "<11.1.24",
|
||||
"symplify\/symplify-kernel": "<11.1.24",
|
||||
"symplify\/vendor-patches": "<11.1.24"
|
||||
"symplify\/rule-doc-generator": "<11.1.25",
|
||||
"symplify\/smart-file-system": "<11.1.25",
|
||||
"symplify\/symfony-static-dumper": "<11.1.25",
|
||||
"symplify\/symplify-kernel": "<11.1.25"
|
||||
},
|
||||
"time": "2022-12-23T15:01:58+00:00",
|
||||
"time": "2023-01-28T10:13:31+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -3167,7 +3163,7 @@
|
|||
],
|
||||
"description": "Contracts for production code of RuleDocGenerator",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/rule-doc-generator-contracts\/tree\/11.1.24"
|
||||
"source": "https:\/\/github.com\/symplify\/rule-doc-generator-contracts\/tree\/11.1.25"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
"license": "MIT",
|
||||
"require": {
|
||||
"php": ">=8.1",
|
||||
"clue\/ndjson-react": "^1.2",
|
||||
"clue\/ndjson-react": "^1.3",
|
||||
"react\/child-process": "^0.6.5",
|
||||
"react\/event-loop": "^1.3",
|
||||
"react\/socket": "^1.12",
|
||||
|
@ -12,7 +12,7 @@
|
|||
"fidry\/cpu-core-counter": "^0.4.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"symplify\/package-builder": "^11.1.24",
|
||||
"symplify\/package-builder": "^11.1.25",
|
||||
"phpunit\/phpunit": "^9.5.26"
|
||||
},
|
||||
"autoload": {
|
||||
|
@ -35,22 +35,20 @@
|
|||
},
|
||||
"conflict": {
|
||||
"symplify\/phpstan-rules": "<11.1.24",
|
||||
"symplify\/easy-testing": "<11.1.24",
|
||||
"symplify\/rule-doc-generator-contracts": "<11.1.24",
|
||||
"symplify\/php-config-printer": "<11.1.24",
|
||||
"symplify\/autowire-array-parameter": "<11.1.24",
|
||||
"symplify\/phpstan-extensions": "<11.1.24",
|
||||
"symplify\/rule-doc-generator": "<11.1.24",
|
||||
"symplify\/symfony-static-dumper": "<11.1.24",
|
||||
"symplify\/easy-testing": "<11.1.25",
|
||||
"symplify\/rule-doc-generator-contracts": "<11.1.25",
|
||||
"symplify\/php-config-printer": "<11.1.25",
|
||||
"symplify\/autowire-array-parameter": "<11.1.25",
|
||||
"symplify\/phpstan-extensions": "<11.1.25",
|
||||
"symplify\/rule-doc-generator": "<11.1.25",
|
||||
"symplify\/symfony-static-dumper": "<11.1.25",
|
||||
"symplify\/config-transformer": "<11.1.24",
|
||||
"symplify\/coding-standard": "<11.1.24",
|
||||
"symplify\/smart-file-system": "<11.1.24",
|
||||
"symplify\/symplify-kernel": "<11.1.24",
|
||||
"symplify\/package-builder": "<11.1.24",
|
||||
"symplify\/smart-file-system": "<11.1.25",
|
||||
"symplify\/symplify-kernel": "<11.1.25",
|
||||
"symplify\/package-builder": "<11.1.25",
|
||||
"symplify\/easy-ci": "<11.1.24",
|
||||
"symplify\/monorepo-builder": "<11.1.24",
|
||||
"symplify\/vendor-patches": "<11.1.24",
|
||||
"symplify\/easy-coding-standard": "<11.1.24"
|
||||
"symplify\/monorepo-builder": "<11.1.24"
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true
|
||||
|
|
|
@ -8,6 +8,7 @@ use RectorPrefix202301\Symfony\Component\Console\Input\InputInterface;
|
|||
use RectorPrefix202301\Symplify\EasyParallel\Exception\ParallelShouldNotHappenException;
|
||||
use RectorPrefix202301\Symplify\EasyParallel\Reflection\CommandFromReflectionFactory;
|
||||
/**
|
||||
* @api
|
||||
* @see \Symplify\EasyParallel\Tests\CommandLine\WorkerCommandLineFactoryTest
|
||||
*/
|
||||
final class WorkerCommandLineFactory
|
||||
|
|
|
@ -5,6 +5,9 @@ namespace RectorPrefix202301\Symplify\EasyParallel;
|
|||
|
||||
use RectorPrefix202301\Fidry\CpuCoreCounter\CpuCoreCounter;
|
||||
use RectorPrefix202301\Fidry\CpuCoreCounter\NumberOfCpuCoreNotFound;
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
final class CpuCoreCountProvider
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
declare (strict_types=1);
|
||||
namespace RectorPrefix202301\Symplify\EasyParallel\Enum;
|
||||
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
final class Action
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
declare (strict_types=1);
|
||||
namespace RectorPrefix202301\Symplify\EasyParallel\Enum;
|
||||
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
final class Content
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
declare (strict_types=1);
|
||||
namespace RectorPrefix202301\Symplify\EasyParallel\Enum;
|
||||
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
final class ReactCommand
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -4,7 +4,7 @@ declare (strict_types=1);
|
|||
namespace RectorPrefix202301\Symplify\EasyParallel\Enum;
|
||||
|
||||
/**
|
||||
* @enum
|
||||
* @api
|
||||
*/
|
||||
final class ReactEvent
|
||||
{
|
||||
|
|
|
@ -4,6 +4,9 @@ declare (strict_types=1);
|
|||
namespace RectorPrefix202301\Symplify\EasyParallel\FileSystem;
|
||||
|
||||
use RectorPrefix202301\Symplify\SmartFileSystem\SmartFileInfo;
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
final class FilePathNormalizer
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -7,6 +7,9 @@ use ReflectionClass;
|
|||
use ReflectionMethod;
|
||||
use RectorPrefix202301\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix202301\Symplify\EasyParallel\Exception\ParallelShouldNotHappenException;
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
final class CommandFromReflectionFactory
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -7,6 +7,8 @@ use RectorPrefix202301\Symplify\EasyParallel\ValueObject\Schedule;
|
|||
/**
|
||||
* Used from
|
||||
* https://github.com/phpstan/phpstan-src/blob/9124c66dcc55a222e21b1717ba5f60771f7dda92/src/Parallel/Scheduler.php
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
final class ScheduleFactory
|
||||
{
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
declare (strict_types=1);
|
||||
namespace RectorPrefix202301\Symplify\EasyParallel\ValueObject;
|
||||
|
||||
/**
|
||||
* @api
|
||||
*/
|
||||
final class EasyParallelConfig
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -17,6 +17,8 @@ use RectorPrefix202301\Symplify\EasyParallel\Exception\ParallelShouldNotHappenEx
|
|||
use Throwable;
|
||||
/**
|
||||
* Inspired at @see https://raw.githubusercontent.com/phpstan/phpstan-src/master/src/Parallel/Process.php
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
final class ParallelProcess
|
||||
{
|
||||
|
|
|
@ -7,6 +7,8 @@ use RectorPrefix202301\React\Socket\TcpServer;
|
|||
use RectorPrefix202301\Symplify\EasyParallel\Exception\ParallelShouldNotHappenException;
|
||||
/**
|
||||
* Used from https://github.com/phpstan/phpstan-src/blob/master/src/Parallel/ProcessPool.php
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
final class ProcessPool
|
||||
{
|
||||
|
|
|
@ -6,6 +6,8 @@ namespace RectorPrefix202301\Symplify\EasyParallel\ValueObject;
|
|||
/**
|
||||
* From
|
||||
* https://github.com/phpstan/phpstan-src/commit/9124c66dcc55a222e21b1717ba5f60771f7dda92#diff-bc84213b079ef3456caece03c00ba34c07886dcae12180cd1192fbb223d65b15
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
final class Schedule
|
||||
{
|
||||
|
|
|
@ -18,22 +18,20 @@
|
|||
},
|
||||
"conflict": {
|
||||
"symplify\/phpstan-rules": "<11.1.24",
|
||||
"symplify\/easy-testing": "<11.1.24",
|
||||
"symplify\/php-config-printer": "<11.1.24",
|
||||
"symplify\/autowire-array-parameter": "<11.1.24",
|
||||
"symplify\/package-builder": "<11.1.24",
|
||||
"symplify\/phpstan-extensions": "<11.1.24",
|
||||
"symplify\/rule-doc-generator": "<11.1.24",
|
||||
"symplify\/smart-file-system": "<11.1.24",
|
||||
"symplify\/symfony-static-dumper": "<11.1.24",
|
||||
"symplify\/symplify-kernel": "<11.1.24",
|
||||
"symplify\/easy-testing": "<11.1.25",
|
||||
"symplify\/php-config-printer": "<11.1.25",
|
||||
"symplify\/autowire-array-parameter": "<11.1.25",
|
||||
"symplify\/package-builder": "<11.1.25",
|
||||
"symplify\/phpstan-extensions": "<11.1.25",
|
||||
"symplify\/rule-doc-generator": "<11.1.25",
|
||||
"symplify\/smart-file-system": "<11.1.25",
|
||||
"symplify\/symfony-static-dumper": "<11.1.25",
|
||||
"symplify\/symplify-kernel": "<11.1.25",
|
||||
"symplify\/config-transformer": "<11.1.24",
|
||||
"symplify\/coding-standard": "<11.1.24",
|
||||
"symplify\/easy-parallel": "<11.1.24",
|
||||
"symplify\/easy-parallel": "<11.1.25",
|
||||
"symplify\/easy-ci": "<11.1.24",
|
||||
"symplify\/monorepo-builder": "<11.1.24",
|
||||
"symplify\/vendor-patches": "<11.1.24",
|
||||
"symplify\/easy-coding-standard": "<11.1.24"
|
||||
"symplify\/monorepo-builder": "<11.1.24"
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true
|
||||
|
|
Loading…
Reference in New Issue