Skip to content

Commit 045c19d

Browse files
committed
Updated Rector to commit 24b76ca1eead8bb095d9dd769a5ace4dfde79915
rectorphp/rector-src@24b76ca Fix php 7.4 regression on strtolower to false on ClassLikeNameClassNameImportSkipVoter (#7436)
1 parent 3c5a641 commit 045c19d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rules/CodingStyle/ClassNameImport/ClassNameImportSkipVoter/ClassLikeNameClassNameImportSkipVoter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function shouldSkip(File $file, FullyQualifiedObjectType $fullyQualifiedO
4545
$namespace = $scope instanceof Scope ? $scope->getNamespace() : null;
4646
$namespace = strtolower((string) $namespace);
4747
$shortNameLowered = $fullyQualifiedObjectType->getShortNameLowered();
48-
$fullyQualifiedObjectTypeNamespace = strtolower(substr($fullyQualifiedObjectType->getClassName(), 0, -strlen($fullyQualifiedObjectType->getShortName()) - 1));
48+
$fullyQualifiedObjectTypeNamespace = strtolower(substr($fullyQualifiedObjectType->getClassName(), 0, -strlen($fullyQualifiedObjectType->getShortName()) - 1) ?: '');
4949
foreach ($classLikeNames as $classLikeName) {
5050
if (strtolower($classLikeName) !== $shortNameLowered) {
5151
continue;

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.2.0';
22+
public const PACKAGE_VERSION = '24b76ca1eead8bb095d9dd769a5ace4dfde79915';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-10-05 14:39:18';
27+
public const RELEASE_DATE = '2025-10-06 20:29:26';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)