diff --git a/src/Result.php b/src/Result.php index 5c135b9149d..dce821c6e65 100644 --- a/src/Result.php +++ b/src/Result.php @@ -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) { @@ -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) {