mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-08 04:10:51 +00:00
Updated Rector to commit 879a36b44d6b43e4c4d268a3d7e96e0830cac478
879a36b44d
[Php81] Skip __invoke() usage from non-class code on FirstClassCallableRector (#5816)
This commit is contained in:
parent
0c2b95ea62
commit
76a58d63f0
|
@ -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());
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
|
@ -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",
|
||||||
|
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user