From 4762afc66feaee4a16386d2d53d921a5029def3c Mon Sep 17 00:00:00 2001 From: Marc Beinder Date: Mon, 25 Nov 2024 08:12:29 -0600 Subject: [PATCH] [DevUtilities] Make Rector::rules() and Rector::skip() parameters optional --- src/DevUtilities/src/Rector/Rector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DevUtilities/src/Rector/Rector.php b/src/DevUtilities/src/Rector/Rector.php index cf4a487..af127c9 100644 --- a/src/DevUtilities/src/Rector/Rector.php +++ b/src/DevUtilities/src/Rector/Rector.php @@ -23,7 +23,7 @@ class Rector { - public static function rules(array $rules): array + public static function rules(array $rules = []): array { return array_merge([ AddVoidReturnTypeWhereNoReturnRector::class, @@ -31,7 +31,7 @@ public static function rules(array $rules): array ], $rules); } - public static function skip(array $rules): array + public static function skip(array $rules = []): array { return array_merge([ CompactToVariablesRector::class,