diff --git a/src/sentry/src/Aspect/SingletonAspect.php b/src/sentry/src/Aspect/SingletonAspect.php index d64e5c2c8..aa7c6c841 100644 --- a/src/sentry/src/Aspect/SingletonAspect.php +++ b/src/sentry/src/Aspect/SingletonAspect.php @@ -40,7 +40,7 @@ public function process(ProceedingJoinPoint $proceedingJoinPoint) $key = $className = $proceedingJoinPoint->className; $arguments = $proceedingJoinPoint->getArguments(); - if (! array_key_exists(0, $arguments)) { + if (array_key_exists(0, $arguments)) { $key .= '#' . $arguments[0]; }