File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ public function __construct()
21
21
/**
22
22
* @param string|null $passphrase
23
23
* @param array|null $configArgs
24
- * @return RSACryptoServiceProvider
24
+ * @return $this
25
25
*/
26
- public function generateKeys (?string $ passphrase = null , ?array $ configArgs = null ) : RSACryptoServiceProvider
26
+ public function generateKeys (?string $ passphrase = null , ?array $ configArgs = null ) : RSAParameters
27
27
{
28
28
$ keys = openssl_pkey_new ($ this ->config );
29
29
@@ -86,9 +86,9 @@ public function getPassphrase(): string
86
86
87
87
/**
88
88
* @param string $passphrase
89
- * @return RSACryptoServiceProvider
89
+ * @return $this
90
90
*/
91
- public function setPassphrase (string $ passphrase ): RSACryptoServiceProvider
91
+ public function setPassphrase (string $ passphrase ): RSAParameters
92
92
{
93
93
$ this ->passphrase = $ passphrase ;
94
94
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ class RSAParametersTest extends TestCase
11
11
/** @test */
12
12
public function canGenerateKeys () :void {
13
13
$ parameters = new RSAParameters ();
14
- $ parameters ->generateKeys ();
14
+ $ keys = $ parameters ->generateKeys ();
15
15
16
- $ this ->assertInstanceOf (RSAParameters::class, $ parameters );
16
+ $ this ->assertInstanceOf (RSAParameters::class, $ keys );
17
17
}
18
18
}
You can’t perform that action at this time.
0 commit comments