Updated Rector to commit 879a36b44d6b43e4c4d268a3d7e96e0830cac478

879a36b44d [Php81] Skip __invoke() usage from non-class code on FirstClassCallableRector (#5816)
This commit is contained in:
Tomas Votruba 2024-04-11 20:55:59 +00:00
parent 0c2b95ea62
commit 76a58d63f0
4 changed files with 8 additions and 11 deletions

View File

@ -118,10 +118,7 @@ CODE_SAMPLE
private function isNonStaticOtherObject(FullyQualifiedObjectType $fullyQualifiedObjectType, ArrayCallable $arrayCallable, Scope $scope) : bool private function isNonStaticOtherObject(FullyQualifiedObjectType $fullyQualifiedObjectType, ArrayCallable $arrayCallable, Scope $scope) : bool
{ {
$classReflection = $scope->getClassReflection(); $classReflection = $scope->getClassReflection();
if (!$classReflection instanceof ClassReflection) { if ($classReflection instanceof ClassReflection && $classReflection->getName() === $fullyQualifiedObjectType->getClassName()) {
return \false;
}
if ($classReflection->getName() === $fullyQualifiedObjectType->getClassName()) {
return \false; return \false;
} }
$arrayClassReflection = $this->reflectionProvider->getClass($arrayCallable->getClass()); $arrayClassReflection = $this->reflectionProvider->getClass($arrayCallable->getClass());

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = 'de7b0526ad03b6e2ecc47d28eb8c8e0e5224152a'; public const PACKAGE_VERSION = '879a36b44d6b43e4c4d268a3d7e96e0830cac478';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-04-10 17:19:25'; public const RELEASE_DATE = '2024-04-12 03:53:43';
/** /**
* @var int * @var int
*/ */

View File

@ -504,8 +504,8 @@
}, },
{ {
"name": "illuminate\/container", "name": "illuminate\/container",
"version": "v10.48.5", "version": "v10.48.7",
"version_normalized": "10.48.5.0", "version_normalized": "10.48.7.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/illuminate\/container.git", "url": "https:\/\/github.com\/illuminate\/container.git",
@ -561,8 +561,8 @@
}, },
{ {
"name": "illuminate\/contracts", "name": "illuminate\/contracts",
"version": "v10.48.5", "version": "v10.48.7",
"version_normalized": "10.48.5.0", "version_normalized": "10.48.7.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/illuminate\/contracts.git", "url": "https:\/\/github.com\/illuminate\/contracts.git",

File diff suppressed because one or more lines are too long