Skip to content

Commit 901eeef

Browse files
authored
Merge pull request #32 from laminas/renovate/vimeo-psalm-5.x
Update dependency vimeo/psalm to v5
2 parents f5807c8 + 47ae655 commit 901eeef

File tree

3 files changed

+114
-107
lines changed

3 files changed

+114
-107
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"laminas/laminas-coding-standard": "~2.4",
3434
"laminas/laminas-config": "^3.8.0",
3535
"phpunit/phpunit": "^9.5.26",
36-
"psalm/plugin-phpunit": "^0.18.0",
37-
"vimeo/psalm": "^4.29"
36+
"psalm/plugin-phpunit": "^0.18.3",
37+
"vimeo/psalm": "^5.1"
3838
},
3939
"autoload": {
4040
"psr-4": {

composer.lock

Lines changed: 110 additions & 102 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ParameterNotFoundException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ public function __construct(
2323

2424
public static function fromException(BaseException $e): self
2525
{
26-
$code = (int) $e->getCode();
27-
$key = (string) $e->getKey();
26+
$key = (string) $e->getKey();
2827
return new self(sprintf(
2928
'Found key "%s" within configuration, but it has no associated parameter defined',
3029
$key
31-
), $code, $e, $key);
30+
), $e->getCode(), $e, $key);
3231
}
3332

3433
public function getKey(): string

0 commit comments

Comments
 (0)