Skip to content

Commit

Permalink
Turn properties readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Jan 8, 2024
1 parent 4373c1e commit 749a181
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/Signer/GooglePublicKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ final class GooglePublicKeys implements KeySet
* @param non-empty-string $certUrl
*/
public function __construct(
private string $certUrl,
private ClientInterface $client,
private RequestFactoryInterface $requestFactory,
private CacheItemPoolInterface $cache,
private string $cacheKeyPrefix = 'bfj_',
private readonly string $certUrl,
private readonly ClientInterface $client,
private readonly RequestFactoryInterface $requestFactory,
private readonly CacheItemPoolInterface $cache,
private readonly string $cacheKeyPrefix = 'bfj_',
) {}


Expand Down
2 changes: 1 addition & 1 deletion src/Validation/Constraint/SignedWithOneInKeySet.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

final class SignedWithOneInKeySet implements Constraint
{
public function __construct(private KeySet $keySet, private Signer $signer) {}
public function __construct(private readonly KeySet $keySet, private readonly Signer $signer) {}

public function assert(Token $token): void
{
Expand Down

0 comments on commit 749a181

Please sign in to comment.