Skip to content

Commit e9b053a

Browse files
samsonasikpaulbalandan
authored andcommitted
[4.1][Static Analysis] Using PhpVersion::PHP_73 constant in rector ^0.9
1 parent 0c56fbe commit e9b053a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use Rector\Core\Configuration\Option;
4+
use Rector\Core\ValueObject\PhpVersion;
45
use Rector\CodeQuality\Rector\Return_\SimplifyUselessVariableRector;
56
use Rector\Performance\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
67
use Rector\SOLID\Rector\If_\RemoveAlwaysElseRector;
@@ -30,7 +31,7 @@
3031
// auto import fully qualified class names
3132
$parameters->set(Option::AUTO_IMPORT_NAMES, true);
3233
$parameters->set(Option::ENABLE_CACHE, true);
33-
$parameters->set(Option::PHP_VERSION_FEATURES, '7.3');
34+
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_73);
3435

3536
$services = $containerConfigurator->services();
3637
$services->set(UnderscoreToCamelCaseVariableNameRector::class);

0 commit comments

Comments
 (0)