Skip to content

Commit

Permalink
Merge pull request #42 from samsonasik/update-to-latest-php81-syntax
Browse files Browse the repository at this point in the history
Update to latest PHP 8.1 syntax
  • Loading branch information
gsteel authored Nov 3, 2024
2 parents 355f4ff + 8bc43ae commit 79285ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ParameterNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct(
string $message = "",
int $code = 0,
?Throwable $previous = null,
private string $key = ''
private readonly string $key = ''
) {
parent::__construct($message, $code, $previous);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ParameterPostProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ParameterPostProcessor
* @psalm-param TParameters $parameters
*/
public function __construct(
private array $parameters
private readonly array $parameters
) {
}

Expand Down

0 comments on commit 79285ef

Please sign in to comment.