mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 19:00:49 +00:00
Updated Rector to commit d01d16e9d8c7225e5a45cb2534b1b338f93e5740
d01d16e9d8
[CodeQuality] Skip compare string with stringable object on UseIdenticalOverEqualWithSameTypeRector (#5718)
This commit is contained in:
parent
03f122a600
commit
d9fea10f3e
|
@ -55,20 +55,17 @@ CODE_SAMPLE
|
|||
public function refactor(Node $node) : ?Node
|
||||
{
|
||||
$leftStaticType = $this->nodeTypeResolver->getNativeType($node->left);
|
||||
// objects can be different by content
|
||||
if ($leftStaticType instanceof ObjectType) {
|
||||
return null;
|
||||
}
|
||||
if ($leftStaticType instanceof MixedType) {
|
||||
return null;
|
||||
}
|
||||
$rightStaticType = $this->nodeTypeResolver->getNativeType($node->right);
|
||||
// objects can be different by content
|
||||
if ($leftStaticType instanceof ObjectType || $rightStaticType instanceof ObjectType) {
|
||||
return null;
|
||||
}
|
||||
if ($leftStaticType instanceof MixedType || $rightStaticType instanceof MixedType) {
|
||||
return null;
|
||||
}
|
||||
if ($leftStaticType->isString()->yes() && $rightStaticType->isString()->yes()) {
|
||||
return $this->processIdenticalOrNotIdentical($node);
|
||||
}
|
||||
if ($rightStaticType instanceof MixedType) {
|
||||
return null;
|
||||
}
|
||||
// different types
|
||||
if (!$leftStaticType->equals($rightStaticType)) {
|
||||
return null;
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'c390eabeb2b2f77f755bfadc1d51b000da0d5ade';
|
||||
public const PACKAGE_VERSION = 'd01d16e9d8c7225e5a45cb2534b1b338f93e5740';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-03-12 17:20:21';
|
||||
public const RELEASE_DATE = '2024-03-14 10:11:24';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
|
@ -504,8 +504,8 @@
|
|||
},
|
||||
{
|
||||
"name": "illuminate\/container",
|
||||
"version": "v10.48.1",
|
||||
"version_normalized": "10.48.1.0",
|
||||
"version": "v10.48.2",
|
||||
"version_normalized": "10.48.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/illuminate\/container.git",
|
||||
|
@ -561,8 +561,8 @@
|
|||
},
|
||||
{
|
||||
"name": "illuminate\/contracts",
|
||||
"version": "v10.48.1",
|
||||
"version_normalized": "10.48.1.0",
|
||||
"version": "v10.48.2",
|
||||
"version_normalized": "10.48.2.0",
|
||||
"source": {
|
||||
"type": "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
2
vendor/scoper-autoload.php
vendored
2
vendor/scoper-autoload.php
vendored
|
@ -14,7 +14,7 @@ $loader = (static function () {
|
|||
// Restore the backup and ensure the excluded files are properly marked as loaded
|
||||
$GLOBALS['__composer_autoload_files'] = \array_merge(
|
||||
$existingComposerAutoloadFiles,
|
||||
\array_fill_keys(['0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147'], true)
|
||||
\array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true)
|
||||
);
|
||||
|
||||
return $loader;
|
||||
|
|
Loading…
Reference in New Issue
Block a user