Skip to content

Commit a01292a

Browse files
committed
[PHP 7.4] Register RealToFloatTypeCastRector in set
1 parent a36ce10 commit a01292a

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

config/set/php74.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Rector\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector;
88
use Rector\Php74\Rector\Assign\NullCoalescingOperatorRector;
99
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
10+
use Rector\Php74\Rector\Double\RealToFloatTypeCastRector;
1011
use Rector\Php74\Rector\FuncCall\ArrayKeyExistsOnPropertyRector;
1112
use Rector\Php74\Rector\FuncCall\FilterVarToAddSlashesRector;
1213
use Rector\Php74\Rector\FuncCall\HebrevcToNl2brHebrevRector;
@@ -41,6 +42,7 @@
4142
ParenthesizeNestedTernaryRector::class,
4243
RestoreIncludePathToIniRestoreRector::class,
4344
HebrevcToNl2brHebrevRector::class,
45+
RealToFloatTypeCastRector::class,
4446
]);
4547

4648
$rectorConfig->ruleWithConfiguration(

phpstan.neon

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,9 @@ parameters:
339339
path: rules/CodingStyle/Application/UseImportsAdder.php
340340

341341
-
342-
message: '#^Register "Rector\\Php74\\Rector\\Double\\RealToFloatTypeCastRector" service to "php74\.php" config set$#'
343342
identifier: rector.upgradeDowngradeRegisteredInSet
344-
count: 1
345-
path: rules/Php74/Rector/Double/RealToFloatTypeCastRector.php
343+
paths:
344+
- rules/Php84/Rector/Class_/PropertyHookRector.php
346345

347346
-
348347
message: '#Offset float\|int\|string might not exist on string#'

0 commit comments

Comments
 (0)