mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-27 01:02:12 +05:30
Remove type hinting
This commit is contained in:
parent
f604109168
commit
01d652ab29
@ -101,12 +101,12 @@ class CryptKey implements CryptKeyInterface
|
|||||||
return 'file://' . $keyPath;
|
return 'file://' . $keyPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getKeyPath(): string
|
public function getKeyPath()
|
||||||
{
|
{
|
||||||
return $this->keyPath;
|
return $this->keyPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPassPhrase(): ?string
|
public function getPassPhrase()
|
||||||
{
|
{
|
||||||
return $this->passPhrase;
|
return $this->passPhrase;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace League\OAuth2\Server;
|
namespace League\OAuth2\Server;
|
||||||
|
|
||||||
@ -10,12 +9,12 @@ interface CryptKeyInterface
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getKeyPath(): string;
|
public function getKeyPath();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve key pass phrase.
|
* Retrieve key pass phrase.
|
||||||
*
|
*
|
||||||
* @return null|string
|
* @return null|string
|
||||||
*/
|
*/
|
||||||
public function getPassPhrase(): ?string;
|
public function getPassPhrase();
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ namespace LeagueTests;
|
|||||||
|
|
||||||
use DateInterval;
|
use DateInterval;
|
||||||
use League\OAuth2\Server\AuthorizationServer;
|
use League\OAuth2\Server\AuthorizationServer;
|
||||||
|
use League\OAuth2\Server\CryptKeyInterface;
|
||||||
use League\OAuth2\Server\Exception\OAuthServerException;
|
use League\OAuth2\Server\Exception\OAuthServerException;
|
||||||
use League\OAuth2\Server\Grant\AuthCodeGrant;
|
use League\OAuth2\Server\Grant\AuthCodeGrant;
|
||||||
use League\OAuth2\Server\Grant\ClientCredentialsGrant;
|
use League\OAuth2\Server\Grant\ClientCredentialsGrant;
|
||||||
@ -152,7 +153,7 @@ class AuthorizationServerTest extends TestCase
|
|||||||
$encryptionKey = 'file://' . __DIR__ . '/Stubs/public.key';
|
$encryptionKey = 'file://' . __DIR__ . '/Stubs/public.key';
|
||||||
|
|
||||||
$responseTypePrototype = new class extends BearerTokenResponse {
|
$responseTypePrototype = new class extends BearerTokenResponse {
|
||||||
/* @return null|\League\OAuth2\Server\CryptKeyInterface */
|
/* @return null|CryptKeyInterface */
|
||||||
public function getPrivateKey()
|
public function getPrivateKey()
|
||||||
{
|
{
|
||||||
return $this->privateKey;
|
return $this->privateKey;
|
||||||
|
Loading…
Reference in New Issue
Block a user