Skip to content

Commit cb71a37

Browse files
committed
change resource key type from resource to mixed to support both resource and OpenSSLAsymmetricKey
1 parent fd24ca5 commit cb71a37

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Cryptography/Keys/EcdsaPrivateKey.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class EcdsaPrivateKey
1010
{
1111
/**
12-
* @var resource Key resource handler
12+
* @var mixed Key resource handler
1313
*/
1414
protected $resource;
1515

@@ -35,7 +35,7 @@ public function __construct(string $key, string $passphrase = '', ?string $id =
3535
}
3636

3737
/**
38-
* @return resource
38+
* @return mixed
3939
*/
4040
public function getResource()
4141
{

src/Cryptography/Keys/EcdsaPublicKey.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class EcdsaPublicKey
1010
{
1111
/**
12-
* @var resource Key resource handler
12+
* @var mixed Key resource handler
1313
*/
1414
protected $resource;
1515

@@ -34,7 +34,7 @@ public function __construct(string $key, ?string $id = null)
3434
}
3535

3636
/**
37-
* @return resource
37+
* @return mixed
3838
*/
3939
public function getResource()
4040
{

src/Cryptography/Keys/RsaPrivateKey.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class RsaPrivateKey
1010
{
1111
/**
12-
* @var resource Key resource handler
12+
* @var mixed Key resource handler
1313
*/
1414
protected $resource;
1515

@@ -35,7 +35,7 @@ public function __construct(string $key, string $passphrase = '', ?string $id =
3535
}
3636

3737
/**
38-
* @return resource
38+
* @return mixed
3939
*/
4040
public function getResource()
4141
{

src/Cryptography/Keys/RsaPublicKey.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class RsaPublicKey
1010
{
1111
/**
12-
* @var resource Key resource handler
12+
* @var mixed Key resource handler
1313
*/
1414
protected $resource;
1515

@@ -34,7 +34,7 @@ public function __construct(string $key, ?string $id = null)
3434
}
3535

3636
/**
37-
* @return resource
37+
* @return mixed
3838
*/
3939
public function getResource()
4040
{

0 commit comments

Comments
 (0)