Skip to content

Commit

Permalink
Updated Rector to commit d01d16e9d8c7225e5a45cb2534b1b338f93e5740
Browse files Browse the repository at this point in the history
rectorphp/rector-src@d01d16e [CodeQuality] Skip compare string with stringable object on UseIdenticalOverEqualWithSameTypeRector (#5718)
  • Loading branch information
TomasVotruba committed Mar 14, 2024
1 parent 03f122a commit d9fea10
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,17 @@ public function getNodeTypes() : array
public function refactor(Node $node) : ?Node
{
$leftStaticType = $this->nodeTypeResolver->getNativeType($node->left);
$rightStaticType = $this->nodeTypeResolver->getNativeType($node->right);
// objects can be different by content
if ($leftStaticType instanceof ObjectType) {
if ($leftStaticType instanceof ObjectType || $rightStaticType instanceof ObjectType) {
return null;
}
if ($leftStaticType instanceof MixedType) {
if ($leftStaticType instanceof MixedType || $rightStaticType instanceof MixedType) {
return null;
}
$rightStaticType = $this->nodeTypeResolver->getNativeType($node->right);
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;
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/installed.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// 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;
Expand Down

0 comments on commit d9fea10

Please sign in to comment.