Skip to content

Commit 9a2832e

Browse files
committed
fix: rename itens to items
1 parent 7dc5b01 commit 9a2832e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/fixed/EarlyReturn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function bar(): bool
1313

1414
public function foo(): ?string
1515
{
16-
foreach ($itens as $item) {
16+
foreach ($items as $item) {
1717
if (! $item->isItem()) {
1818
return 'There is an item that is not an item';
1919
}

tests/input/EarlyReturn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function bar(): bool
1717

1818
public function foo(): ?string
1919
{
20-
foreach ($itens as $item) {
20+
foreach ($items as $item) {
2121
if (! ($item->isItem())) {
2222
return 'There is an item that is not an item';
2323
} else {

tests/php80-compatibility.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ index 5a82a93..7d5eb01 100644
6969
- public function foo(): ?string
7070
+ public function foo(): string|null
7171
{
72-
foreach ($itens as $item) {
72+
foreach ($items as $item) {
7373
if (! $item->isItem()) {
7474
diff --git a/tests/fixed/NamingCamelCase.php b/tests/fixed/NamingCamelCase.php
7575
index 57d9f2b..5493471 100644

tests/php81-compatibility.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ index 5a82a93..7d5eb01 100644
6969
- public function foo(): ?string
7070
+ public function foo(): string|null
7171
{
72-
foreach ($itens as $item) {
72+
foreach ($items as $item) {
7373
if (! $item->isItem()) {
7474
diff --git a/tests/fixed/NamingCamelCase.php b/tests/fixed/NamingCamelCase.php
7575
index 57d9f2b..5493471 100644

0 commit comments

Comments
 (0)