mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 00:40:52 +00:00
Updated Rector to commit 35c1bf45b0bed6351e0db6e3a44a452f3713b155
35c1bf45b0
[TypeDeclaration] Handle with inner function on AddParamTypeBasedOnPHPUnitDataProviderRector (#5786)
This commit is contained in:
parent
9369a862b6
commit
755e0f4a8c
|
@ -166,12 +166,12 @@ CODE_SAMPLE
|
||||||
return new MixedType();
|
return new MixedType();
|
||||||
}
|
}
|
||||||
/** @var Return_[] $returns */
|
/** @var Return_[] $returns */
|
||||||
$returns = $this->betterNodeFinder->findInstanceOf((array) $dataProviderClassMethod->stmts, Return_::class);
|
$returns = $this->betterNodeFinder->findInstancesOfInFunctionLikeScoped($dataProviderClassMethod, Return_::class);
|
||||||
if ($returns !== []) {
|
if ($returns !== []) {
|
||||||
return $this->resolveReturnStaticArrayTypeByParameterPosition($returns, $parameterPosition);
|
return $this->resolveReturnStaticArrayTypeByParameterPosition($returns, $parameterPosition);
|
||||||
}
|
}
|
||||||
/** @var Yield_[] $yields */
|
/** @var Yield_[] $yields */
|
||||||
$yields = $this->betterNodeFinder->findInstanceOf((array) $dataProviderClassMethod->stmts, Yield_::class);
|
$yields = $this->betterNodeFinder->findInstancesOfInFunctionLikeScoped($dataProviderClassMethod, Yield_::class);
|
||||||
return $this->resolveYieldStaticArrayTypeByParameterPosition($yields, $parameterPosition);
|
return $this->resolveYieldStaticArrayTypeByParameterPosition($yields, $parameterPosition);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = 'd86930657fc80c2db725391d1bb8f3ad6a61d96a';
|
public const PACKAGE_VERSION = '35c1bf45b0bed6351e0db6e3a44a452f3713b155';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-04-01 02:46:21';
|
public const RELEASE_DATE = '2024-04-01 03:45:30';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user