File tree 1 file changed +2
-11
lines changed
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 9
9
10
10
class Key
11
11
{
12
- /** @var string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate */
13
- private $ keyMaterial ;
14
- /** @var string */
15
- private $ algorithm ;
16
-
17
12
/**
18
13
* @param string|resource|OpenSSLAsymmetricKey|OpenSSLCertificate $keyMaterial
19
14
* @param string $algorithm
20
15
*/
21
16
public function __construct (
22
- $ keyMaterial ,
23
- string $ algorithm
17
+ private $ keyMaterial ,
18
+ private string $ algorithm
24
19
) {
25
20
if (
26
21
!\is_string ($ keyMaterial )
@@ -38,10 +33,6 @@ public function __construct(
38
33
if (empty ($ algorithm )) {
39
34
throw new InvalidArgumentException ('Algorithm must not be empty ' );
40
35
}
41
-
42
- // TODO: Remove in PHP 8.0 in favor of class constructor property promotion
43
- $ this ->keyMaterial = $ keyMaterial ;
44
- $ this ->algorithm = $ algorithm ;
45
36
}
46
37
47
38
/**
You can’t perform that action at this time.
0 commit comments