Skip to content

Commit

Permalink
Removed constructor property promotion to fix compatibility with PHP 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
webhdx authored Dec 1, 2023
1 parent 63a9811 commit dd21e04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Command/EnableEncryptionConfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,14 @@ final class EnableEncryptionConfigCommand extends AbstractConfigCommand
*/
protected static $defaultName = 'lexik:jwt:enable-encryption';

private ?AlgorithmManagerFactory $algorithmManagerFactory;

public function __construct(
private ?AlgorithmManagerFactory $algorithmManagerFactory,
?AlgorithmManagerFactory $algorithmManagerFactory = null
) {
parent::__construct();

$this->algorithmManagerFactory = $algorithmManagerFactory;
}

/**
Expand Down

0 comments on commit dd21e04

Please sign in to comment.