Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/ParameterNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@

class ParameterNotFoundException extends InvalidArgumentException
{
private string $key;

public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null, string $key = '')
{
public function __construct(
string $message = "",
int $code = 0,
?Throwable $previous = null,
private string $key = ''
) {
parent::__construct($message, $code, $previous);
$this->key = $key;
}

public static function fromException(BaseException $e): self
Expand Down
12 changes: 3 additions & 9 deletions src/ParameterPostProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,13 @@
*/
class ParameterPostProcessor
{
/**
* @var array<string,mixed>
* @psalm-var TParameters
*/
private array $parameters;

/**
* @param array<string,mixed> $parameters
* @psalm-param TParameters $parameters
*/
public function __construct(array $parameters)
{
$this->parameters = $parameters;
public function __construct(
private array $parameters
) {
}

/**
Expand Down