Skip to content

Commit 3801403

Browse files
committed
Updated Rector to commit ba8614a8d2f09f3baf3c7ef930c0e26eb68e30d0
rectorphp/rector-src@ba8614a [CodeQuality] Skip ArrayDimFetch on IssetOnPropertyObjectToPropertyExistsRector (#6862)
1 parent 8eed8de commit 3801403

5 files changed

Lines changed: 21 additions & 16 deletions

File tree

rules/Carbon/Rector/FuncCall/DateFuncCallToCarbonRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function refactor(Node $node) : ?Node
9797
if ($this->isName($node->name, 'strtotime') && isset($node->args[0])) {
9898
$dateExpr = $this->getArgValue($node, 0);
9999
$baseTimestamp = $this->getArgValue($node, 1);
100-
if ($dateExpr instanceof Expr && $baseTimestamp === null) {
100+
if ($dateExpr instanceof Expr && !$baseTimestamp instanceof Expr) {
101101
return $this->createCarbonParseTimestamp($dateExpr);
102102
}
103103
if ($dateExpr instanceof Expr && $baseTimestamp instanceof String_) {

rules/CodeQuality/Rector/Isset_/IssetOnPropertyObjectToPropertyExistsRector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use PhpParser\Node;
77
use PhpParser\Node\Arg;
88
use PhpParser\Node\Expr;
9+
use PhpParser\Node\Expr\ArrayDimFetch;
910
use PhpParser\Node\Expr\BinaryOp\BooleanAnd;
1011
use PhpParser\Node\Expr\BinaryOp\BooleanOr;
1112
use PhpParser\Node\Expr\BinaryOp\Identical;
@@ -116,6 +117,10 @@ public function refactor(Node $node) : ?Node
116117
if (!$classReflection instanceof ClassReflection) {
117118
continue;
118119
}
120+
// possibly by docblock
121+
if ($issetExpr->var instanceof ArrayDimFetch) {
122+
continue;
123+
}
119124
if (!$classReflection->hasProperty($propertyFetchName) || $classReflection->isBuiltin()) {
120125
$newNodes[] = $this->replaceToPropertyExistsWithNullCheck($issetExpr->var, $propertyFetchName, $issetExpr, $isNegated);
121126
} elseif ($isNegated) {

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = 'c169846794fa6e607ce7f7f310960b5c9b6503ad';
22+
public const PACKAGE_VERSION = 'ba8614a8d2f09f3baf3c7ef930c0e26eb68e30d0';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-04-23 10:05:17';
27+
public const RELEASE_DATE = '2025-04-24 16:04:29';
2828
/**
2929
* @var int
3030
*/

vendor/composer/installed.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -512,17 +512,17 @@
512512
},
513513
{
514514
"name": "illuminate\/container",
515-
"version": "v11.44.2",
516-
"version_normalized": "11.44.2.0",
515+
"version": "v11.44.4",
516+
"version_normalized": "11.44.4.0",
517517
"source": {
518518
"type": "git",
519519
"url": "https:\/\/github.com\/illuminate\/container.git",
520-
"reference": "4dcc3fcbab92e734fc0c08d9cfd97f5a1aef18ca"
520+
"reference": "79bf9149ad7ddd7e14326ebcdd41197d2c4ee36a"
521521
},
522522
"dist": {
523523
"type": "zip",
524-
"url": "https:\/\/api.github.com\/repos\/illuminate\/container\/zipball\/4dcc3fcbab92e734fc0c08d9cfd97f5a1aef18ca",
525-
"reference": "4dcc3fcbab92e734fc0c08d9cfd97f5a1aef18ca",
524+
"url": "https:\/\/api.github.com\/repos\/illuminate\/container\/zipball\/79bf9149ad7ddd7e14326ebcdd41197d2c4ee36a",
525+
"reference": "79bf9149ad7ddd7e14326ebcdd41197d2c4ee36a",
526526
"shasum": ""
527527
},
528528
"require": {
@@ -533,7 +533,7 @@
533533
"provide": {
534534
"psr\/container-implementation": "1.1|2.0"
535535
},
536-
"time": "2025-02-10T14:20:57+00:00",
536+
"time": "2025-03-24T11:54:20+00:00",
537537
"type": "library",
538538
"extra": {
539539
"branch-alias": {
@@ -569,25 +569,25 @@
569569
},
570570
{
571571
"name": "illuminate\/contracts",
572-
"version": "v11.44.2",
573-
"version_normalized": "11.44.2.0",
572+
"version": "v11.44.4",
573+
"version_normalized": "11.44.4.0",
574574
"source": {
575575
"type": "git",
576576
"url": "https:\/\/github.com\/illuminate\/contracts.git",
577-
"reference": "b350a3cd8450846325cb49e1cbc1293598b18898"
577+
"reference": "4b2a67d1663f50085bc91e6371492697a5d2d4e8"
578578
},
579579
"dist": {
580580
"type": "zip",
581-
"url": "https:\/\/api.github.com\/repos\/illuminate\/contracts\/zipball\/b350a3cd8450846325cb49e1cbc1293598b18898",
582-
"reference": "b350a3cd8450846325cb49e1cbc1293598b18898",
581+
"url": "https:\/\/api.github.com\/repos\/illuminate\/contracts\/zipball\/4b2a67d1663f50085bc91e6371492697a5d2d4e8",
582+
"reference": "4b2a67d1663f50085bc91e6371492697a5d2d4e8",
583583
"shasum": ""
584584
},
585585
"require": {
586586
"php": "^8.2",
587587
"psr\/container": "^1.1.1|^2.0.1",
588588
"psr\/simple-cache": "^1.0|^2.0|^3.0"
589589
},
590-
"time": "2025-02-10T14:20:57+00:00",
590+
"time": "2025-03-24T11:54:20+00:00",
591591
"type": "library",
592592
"extra": {
593593
"branch-alias": {

vendor/composer/installed.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)