Skip to content

Commit

Permalink
fix Error: Method Eccube\Entity\AbstractEntity::offsetGet() should re…
Browse files Browse the repository at this point in the history
…turn mixed but return statement is missing.
  • Loading branch information
ci-wataru-kashii committed Sep 30, 2024
1 parent 373ce06 commit d95b3fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Eccube/Entity/AbstractEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public function offsetGet($offset): mixed
} elseif (method_exists($this, "has$method")) {
return $this->{"has$method"}();
}

return null;

Check warning on line 64 in src/Eccube/Entity/AbstractEntity.php

View check run for this annotation

Codecov / codecov/patch

src/Eccube/Entity/AbstractEntity.php#L64

Added line #L64 was not covered by tests
}

#[\ReturnTypeWillChange]
Expand Down

0 comments on commit d95b3fa

Please sign in to comment.