Skip to content

Commit d7ad85e

Browse files
committed
Updated Rector to commit 367edb50d168d753eb00ad56d0681ac5e8a73a16
rectorphp/rector-src@367edb5 [TypeDeclaration] Skip with include on SafeDeclareStrictTypesRector (#7862)
1 parent 9442f40 commit d7ad85e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

rules/TypeDeclaration/NodeAnalyzer/StrictTypeSafetyChecker.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use PhpParser\Node\Attribute;
88
use PhpParser\Node\Expr\Assign;
99
use PhpParser\Node\Expr\CallLike;
10+
use PhpParser\Node\Expr\Include_;
1011
use PhpParser\Node\Expr\PropertyFetch;
1112
use PhpParser\Node\Expr\StaticPropertyFetch;
1213
use PhpParser\Node\FunctionLike;
@@ -77,7 +78,8 @@ public function isFileStrictTypeSafe(FileNode $fileNode): bool
7778
return \false;
7879
}
7980
}
80-
return \true;
81+
$includes = $this->betterNodeFinder->findInstanceOf($fileNode->stmts, Include_::class);
82+
return $includes === [];
8183
}
8284
private function isCallLikeSafe(CallLike $callLike): bool
8385
{

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 = '2.3.5';
22+
public const PACKAGE_VERSION = '367edb50d168d753eb00ad56d0681ac5e8a73a16';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-01-28 14:26:58';
27+
public const RELEASE_DATE = '2026-01-28 17:10:41';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)