Skip to content

Commit

Permalink
Make key read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
cerbero90 committed Feb 15, 2024
1 parent e2c724a commit 0ca3adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exceptions/InvalidKeyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class InvalidKeyException extends LazyJsonPagesException
/**
* Instantiate the class.
*/
public function __construct(public string $key)
public function __construct(public readonly string $key)
{
parent::__construct("The key [{$key}] does not contain a valid value.");
}
Expand Down

0 comments on commit 0ca3adc

Please sign in to comment.