Closed peterfox closed 11 months ago
Creates the following rule:
Replace $app->environment() === 'local' with $app->environment('local'])
$app->environment() === 'local'
$app->environment('local'])
RectorLaravel\Rector\Expr\AppEnvironmentComparisonToParameterRector
-$app->environment() === 'production'; +$app->environment('production');
This rule will handle scenarios such as if the Facade is used or the Application contract.
Creates the following rule:
AppEnvironmentComparisonToParameterRector
Replace
$app->environment() === 'local'
with$app->environment('local'])
RectorLaravel\Rector\Expr\AppEnvironmentComparisonToParameterRector
This rule will handle scenarios such as if the Facade is used or the Application contract.