mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
fix: check if key exists
This commit is contained in:
parent
26f33adc09
commit
ef5744eed1
@ -6,7 +6,7 @@
|
|||||||
backupGlobals="false"
|
backupGlobals="false"
|
||||||
colors="true"
|
colors="true"
|
||||||
failOnNotice="true"
|
failOnNotice="true"
|
||||||
failOnWarning="false"
|
failOnWarning="true"
|
||||||
bootstrap="tests/bootstrap.php"
|
bootstrap="tests/bootstrap.php"
|
||||||
cacheDirectory=".phpunit.cache"
|
cacheDirectory=".phpunit.cache"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -63,7 +63,7 @@ readonly class AutoRegisterDomainProvider implements ProviderInterface
|
|||||||
*/
|
*/
|
||||||
public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null
|
public function provide(Operation $operation, array $uriVariables = [], array $context = []): object|array|null
|
||||||
{
|
{
|
||||||
$fromWatchlist = Watchlist::class === $context['root_operation']?->getClass();
|
$fromWatchlist = array_key_exists('root_operation', $context) && Watchlist::class === $context['root_operation']?->getClass();
|
||||||
|
|
||||||
$userId = $this->security->getUser()->getUserIdentifier();
|
$userId = $this->security->getUser()->getUserIdentifier();
|
||||||
$idnDomain = RDAPService::convertToIdn($uriVariables['ldhName']);
|
$idnDomain = RDAPService::convertToIdn($uriVariables['ldhName']);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user