Skip to content

Commit

Permalink
bug #1174 Fix for PHP <7.4 compatibility (fracsi)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

Fix for PHP <7.4 compatibility

Typed properties are only allowed since PHP 7.4.
Fixes #1173 for PHP <7.4
Follow up for #1172

Commits
-------

287a079 PHP <7.4 compatibility
  • Loading branch information
chalasr committed Dec 2, 2023
2 parents 8a13662 + 287a079 commit 236a180
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Command/EnableEncryptionConfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ final class EnableEncryptionConfigCommand extends AbstractConfigCommand
*/
protected static $defaultName = 'lexik:jwt:enable-encryption';

private ?AlgorithmManagerFactory $algorithmManagerFactory;
/**
* @var ?AlgorithmManagerFactory
*/
private $algorithmManagerFactory;

public function __construct(
?AlgorithmManagerFactory $algorithmManagerFactory = null
Expand Down

0 comments on commit 236a180

Please sign in to comment.