mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 09:45:29 +00:00
fix: check if key exists
This commit is contained in:
parent
26f33adc09
commit
ef5744eed1
@ -6,7 +6,7 @@
|
||||
backupGlobals="false"
|
||||
colors="true"
|
||||
failOnNotice="true"
|
||||
failOnWarning="false"
|
||||
failOnWarning="true"
|
||||
bootstrap="tests/bootstrap.php"
|
||||
cacheDirectory=".phpunit.cache"
|
||||
>
|
||||
|
||||
@ -63,7 +63,7 @@ readonly class AutoRegisterDomainProvider implements ProviderInterface
|
||||
*/
|
||||
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();
|
||||
$idnDomain = RDAPService::convertToIdn($uriVariables['ldhName']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user