Skip to content

Commit

Permalink
Merge pull request #32 from laminas/renovate/vimeo-psalm-5.x
Browse files Browse the repository at this point in the history
Update dependency vimeo/psalm to v5
  • Loading branch information
Ocramius authored Dec 5, 2022
2 parents f5807c8 + 47ae655 commit 901eeef
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 107 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"laminas/laminas-coding-standard": "~2.4",
"laminas/laminas-config": "^3.8.0",
"phpunit/phpunit": "^9.5.26",
"psalm/plugin-phpunit": "^0.18.0",
"vimeo/psalm": "^4.29"
"psalm/plugin-phpunit": "^0.18.3",
"vimeo/psalm": "^5.1"
},
"autoload": {
"psr-4": {
Expand Down
212 changes: 110 additions & 102 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 901eeef

Please sign in to comment.