Skip to content

Commit

Permalink
Remove unnecessary cast
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Dec 5, 2022
1 parent d8b965b commit 7017d80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ParameterNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ public function __construct(

public static function fromException(BaseException $e): self
{
$code = (int) $e->getCode();
$key = (string) $e->getKey();
$key = (string) $e->getKey();
return new self(sprintf(
'Found key "%s" within configuration, but it has no associated parameter defined',
$key
), $code, $e, $key);
), $e->getCode(), $e, $key);
}

public function getKey(): string
Expand Down

0 comments on commit 7017d80

Please sign in to comment.