Skip to content

Commit

Permalink
fix: rename itens to items
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Jun 26, 2022
1 parent 995c202 commit 503be0d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/fixed/EarlyReturn.php
Expand Up @@ -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';
}
Expand Down
2 changes: 1 addition & 1 deletion tests/input/EarlyReturn.php
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/php80-compatibility.patch
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/php81-compatibility.patch
Expand Up @@ -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
Expand Down

0 comments on commit 503be0d

Please sign in to comment.