File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 99
1010class Key
1111{
12- /** @var string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate */
13- private $ keyMaterial ;
14- /** @var string */
15- private $ algorithm ;
16-
1712 /**
1813 * @param string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate $keyMaterial
1914 * @param string $algorithm
2015 */
2116 public function __construct (
22- $ keyMaterial ,
23- string $ algorithm
17+ private $ keyMaterial ,
18+ private string $ algorithm
2419 ) {
2520 if (
2621 !\is_string ($ keyMaterial )
@@ -38,10 +33,6 @@ public function __construct(
3833 if (empty ($ algorithm )) {
3934 throw new InvalidArgumentException ('Algorithm must not be empty ' );
4035 }
41-
42- // TODO: Remove in PHP 8.0 in favor of class constructor property promotion
43- $ this ->keyMaterial = $ keyMaterial ;
44- $ this ->algorithm = $ algorithm ;
4536 }
4637
4738 /**
You can’t perform that action at this time.
0 commit comments