Skip to content

Commit

Permalink
Merge pull request #5079 from derrabus/bugfix/typos
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored Dec 3, 2021
2 parents 4b1b772 + c27ea75 commit 141daa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ private function ensureHasKeyValue(): void
public function fetch(int $mode = FetchMode::ASSOCIATIVE)
{
if (func_num_args() > 1) {
throw new LogicException('Only invocations with one argument are still supported by this legecy API.');
throw new LogicException('Only invocations with one argument are still supported by this legacy API.');
}

if ($mode === FetchMode::ASSOCIATIVE) {
Expand Down Expand Up @@ -311,7 +311,7 @@ public function fetch(int $mode = FetchMode::ASSOCIATIVE)
public function fetchAll(int $mode = FetchMode::ASSOCIATIVE): array
{
if (func_num_args() > 1) {
throw new LogicException('Only invocations with one argument are still supported by this legecy API.');
throw new LogicException('Only invocations with one argument are still supported by this legacy API.');
}

if ($mode === FetchMode::ASSOCIATIVE) {
Expand Down

0 comments on commit 141daa5

Please sign in to comment.