From 9a2832e9c324b79524ce506df2ca51d8db0d8b97 Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Sun, 26 Jun 2022 14:25:31 +0300 Subject: [PATCH] fix: rename itens to items --- tests/fixed/EarlyReturn.php | 2 +- tests/input/EarlyReturn.php | 2 +- tests/php80-compatibility.patch | 2 +- tests/php81-compatibility.patch | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/fixed/EarlyReturn.php b/tests/fixed/EarlyReturn.php index 5a82a937..caf1dbb6 100644 --- a/tests/fixed/EarlyReturn.php +++ b/tests/fixed/EarlyReturn.php @@ -13,7 +13,7 @@ public function bar(): bool public function foo(): ?string { - foreach ($itens as $item) { + foreach ($items as $item) { if (! $item->isItem()) { return 'There is an item that is not an item'; } diff --git a/tests/input/EarlyReturn.php b/tests/input/EarlyReturn.php index 7d90c6d6..9f13d86e 100644 --- a/tests/input/EarlyReturn.php +++ b/tests/input/EarlyReturn.php @@ -17,7 +17,7 @@ public function bar(): bool public function foo(): ?string { - foreach ($itens as $item) { + foreach ($items as $item) { if (! ($item->isItem())) { return 'There is an item that is not an item'; } else { diff --git a/tests/php80-compatibility.patch b/tests/php80-compatibility.patch index cedc03c0..0963401f 100644 --- a/tests/php80-compatibility.patch +++ b/tests/php80-compatibility.patch @@ -69,7 +69,7 @@ index 5a82a93..7d5eb01 100644 - public function foo(): ?string + public function foo(): string|null { - foreach ($itens as $item) { + foreach ($items as $item) { if (! $item->isItem()) { diff --git a/tests/fixed/NamingCamelCase.php b/tests/fixed/NamingCamelCase.php index 57d9f2b..5493471 100644 diff --git a/tests/php81-compatibility.patch b/tests/php81-compatibility.patch index c2d5d510..0318427b 100644 --- a/tests/php81-compatibility.patch +++ b/tests/php81-compatibility.patch @@ -69,7 +69,7 @@ index 5a82a93..7d5eb01 100644 - public function foo(): ?string + public function foo(): string|null { - foreach ($itens as $item) { + foreach ($items as $item) { if (! $item->isItem()) { diff --git a/tests/fixed/NamingCamelCase.php b/tests/fixed/NamingCamelCase.php index 57d9f2b..5493471 100644