Skip to content

Commit bd89a0c

Browse files
authored
[deprecation] Deprecate PropertyHookRector, as property hooks are a matter of preference (#8331)
1 parent 7ad3ac0 commit bd89a0c

20 files changed

Lines changed: 9 additions & 510 deletions

‎config/set/php84.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,5 @@
2222
ForeachToArrayFindKeyRector::class,
2323
ForeachToArrayAllRector::class,
2424
ForeachToArrayAnyRector::class,
25-
26-
// optional
27-
// \Rector\Php84\Rector\Class_\PropertyHookRector::class,
2825
]);
2926
};

‎phpstan.neon‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ parameters:
275275
- '#Register "Rector\\Php80\\Rector\\NotIdentical\\MbStrContainsRector" service to "php80\.php" config set#'
276276
- '#Register "Rector\\Php85\\Rector\\StmtsAwareInterface\\SequentialAssignmentsToPipeOperatorRector" service to "php85\.php" config set#'
277277
- '#Register "Rector\\Php85\\Rector\\Expression\\NestedFuncCallsToPipeOperatorRector" service to "php85\.php" config set#'
278+
- '#Register "Rector\\Php84\\Rector\\Class_\\PropertyHookRector" service to "php84\.php" config set#'
278279

279280
# closure detailed
280281
- '#Method Rector\\Config\\RectorConfig\:\:singleton\(\) has parameter \$concrete with no signature specified for Closure#'

‎rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_different_variable.php.inc‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_get_set_magic.php.inc‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

‎rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_getter_and_readonly.php.inc‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_method_with_attributes.php.inc‎

Lines changed: 0 additions & 22 deletions
This file was deleted.

‎rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_mismatching_getter_setter_names.php.inc‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_multi_stmts_getter.php.inc‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_non_final_class_to_avoid_child_break.php.inc‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎rules-tests/Php84/Rector/Class_/PropertyHookRector/Fixture/skip_parent_contract.php.inc‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)