Skip to content

Commit

Permalink
change resource key type from resource to mixed to support both resou…
Browse files Browse the repository at this point in the history
…rce and OpenSSLAsymmetricKey
  • Loading branch information
miladrahimi committed Jun 1, 2024
1 parent 6717e13 commit 6555d0d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Cryptography/Keys/EcdsaPrivateKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class EcdsaPrivateKey
{
/**
* @var resource Key resource handler
* @var mixed Key resource handler
*/
protected $resource;

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

/**
* @return resource
* @return mixed
*/
public function getResource()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Cryptography/Keys/EcdsaPublicKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class EcdsaPublicKey
{
/**
* @var resource Key resource handler
* @var mixed Key resource handler
*/
protected $resource;

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

/**
* @return resource
* @return mixed
*/
public function getResource()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Cryptography/Keys/RsaPrivateKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class RsaPrivateKey
{
/**
* @var resource Key resource handler
* @var mixed Key resource handler
*/
protected $resource;

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

/**
* @return resource
* @return mixed
*/
public function getResource()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Cryptography/Keys/RsaPublicKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class RsaPublicKey
{
/**
* @var resource Key resource handler
* @var mixed Key resource handler
*/
protected $resource;

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

/**
* @return resource
* @return mixed
*/
public function getResource()
{
Expand Down

0 comments on commit 6555d0d

Please sign in to comment.