From 0cac71a900cfa8d353231bc728e65d47b755b434 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 12 Nov 2024 09:36:15 +0700 Subject: [PATCH] [CodeQuality] Add fixture test for skip nullable array from property with default value (#6417) --- .../Fixture/skip_nullable.php.inc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 rules-tests/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector/Fixture/skip_nullable.php.inc diff --git a/rules-tests/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector/Fixture/skip_nullable.php.inc b/rules-tests/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector/Fixture/skip_nullable.php.inc new file mode 100644 index 00000000000..bc667299c87 --- /dev/null +++ b/rules-tests/CodeQuality/Rector/Empty_/SimplifyEmptyCheckOnEmptyArrayRector/Fixture/skip_nullable.php.inc @@ -0,0 +1,19 @@ +property = null; + } + + public function isEmpty(): bool + { + return empty($this->property); + } +}