Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions config/set/php85.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Rector\Php85\Rector\ShellExec\ShellExecFunctionCallOverBackticksRector;
use Rector\Php85\Rector\Switch_\ColonAfterSwitchCaseRector;
use Rector\Removing\Rector\FuncCall\RemoveFuncCallArgRector;
use Rector\Removing\Rector\FuncCall\RemoveFuncCallRector;
use Rector\Removing\ValueObject\RemoveFuncCallArg;
use Rector\Renaming\Rector\Cast\RenameCastRector;
use Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector;
Expand All @@ -28,8 +29,6 @@
use Rector\Renaming\ValueObject\MethodCallRename;
use Rector\Renaming\ValueObject\RenameCast;
use Rector\Renaming\ValueObject\RenameClassAndConstFetch;
use Rector\Transform\Rector\FuncCall\WrapFuncCallWithPhpVersionIdCheckerRector;
use Rector\Transform\ValueObject\WrapFuncCallWithPhpVersionIdChecker;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rules(
Expand Down Expand Up @@ -199,16 +198,10 @@
);

// https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_no-op_functions_from_the_resource_to_object_conversion
$rectorConfig->ruleWithConfiguration(
WrapFuncCallWithPhpVersionIdCheckerRector::class,
[
new WrapFuncCallWithPhpVersionIdChecker('curl_close', 80500),
new WrapFuncCallWithPhpVersionIdChecker('curl_share_close', 80500),
new WrapFuncCallWithPhpVersionIdChecker('finfo_close', 80500),
new WrapFuncCallWithPhpVersionIdChecker('imagedestroy', 80500),
new WrapFuncCallWithPhpVersionIdChecker('xml_parser_free', 80500),
]
);
// these function have no effect when use
$rectorConfig->ruleWithConfiguration(RemoveFuncCallRector::class, [
'curl_close', 'curl_share_close', 'finfo_close', 'imagedestroy', 'xml_parser_free',
]);

// https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_filter_default_constant
$rectorConfig->ruleWithConfiguration(RenameConstantRector::class, [
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion rules/Removing/Rector/FuncCall/RemoveFuncCallRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class RemoveFuncCallRector extends AbstractRector implements ConfigurableR

public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('Remove function', [
return new RuleDefinition('Remove defined function calls', [
new ConfiguredCodeSample(
<<<'CODE_SAMPLE'
$x = 'something';
Expand Down

This file was deleted.

This file was deleted.