Skip to content

Commit ba64371

Browse files
HP-2824: The context key 'filed' is a typo for 'field', and will cause problems for code inspecting context by this key.
1 parent c882c4e commit ba64371

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exception/CannotReassignException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class CannotReassignException extends Exception implements ExceptionInterface, H
2323
{
2424
use HasContext;
2525

26-
public function __construct(string $message, int $code = 0, Throwable $previous = null)
26+
public function __construct(string $message, int $code = 0, ?Throwable $previous = null)
2727
{
28-
$this->addContext(['filed' => $message]);
28+
$this->addContext(['field' => $message]);
2929

3030
parent::__construct("cannot reassign $message", $code, $previous);
3131
}

0 commit comments

Comments
 (0)