You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Event.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -802,7 +802,7 @@ public function setExceptions(array $exceptions): self
802
802
{
803
803
foreach ($exceptionsas$exception) {
804
804
if (!$exceptioninstanceof ExceptionDataBag) {
805
-
thrownew \UnexpectedValueException(\sprintf('Expected an instance of the "%s" class. Got: "%s".', ExceptionDataBag::class, get_debug_type($exception)));
805
+
thrownew \UnexpectedValueException(\sprintf('Expected an instance of the "%s" class. Got: "%s".', ExceptionDataBag::class, \gettype($exception)));
Copy file name to clipboardExpand all lines: src/EventHint.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -56,19 +56,19 @@ public static function fromArray(array $hintData): self
56
56
$extra = $hintData['extra'] ?? [];
57
57
58
58
if ($exception !== null && !$exceptioninstanceof \Throwable) {
59
-
thrownew \InvalidArgumentException(\sprintf('The value of the "exception" field must be an instance of a class implementing the "%s" interface. Got: "%s".', \Throwable::class, get_debug_type($exception)));
59
+
thrownew \InvalidArgumentException(\sprintf('The value of the "exception" field must be an instance of a class implementing the "%s" interface. Got: "%s".', \Throwable::class, \gettype($exception)));
60
60
}
61
61
62
62
if ($mechanism !== null && !$mechanisminstanceof ExceptionMechanism) {
63
-
thrownew \InvalidArgumentException(\sprintf('The value of the "mechanism" field must be an instance of the "%s" class. Got: "%s".', ExceptionMechanism::class, get_debug_type($mechanism)));
63
+
thrownew \InvalidArgumentException(\sprintf('The value of the "mechanism" field must be an instance of the "%s" class. Got: "%s".', ExceptionMechanism::class, \gettype($mechanism)));
64
64
}
65
65
66
66
if ($stacktrace !== null && !$stacktraceinstanceof Stacktrace) {
67
-
thrownew \InvalidArgumentException(\sprintf('The value of the "stacktrace" field must be an instance of the "%s" class. Got: "%s".', Stacktrace::class, get_debug_type($stacktrace)));
67
+
thrownew \InvalidArgumentException(\sprintf('The value of the "stacktrace" field must be an instance of the "%s" class. Got: "%s".', Stacktrace::class, \gettype($stacktrace)));
68
68
}
69
69
70
70
if (!\is_array($extra)) {
71
-
thrownew \InvalidArgumentException(\sprintf('The value of the "extra" field must be an array. Got: "%s".', get_debug_type($extra)));
71
+
thrownew \InvalidArgumentException(\sprintf('The value of the "extra" field must be an array. Got: "%s".', \gettype($extra)));
thrownew \UnexpectedValueException(\sprintf('Expected the callback set for the "integrations" option to return a list of integrations. Got: "%s".', get_debug_type($integrations)));
126
+
thrownew \UnexpectedValueException(\sprintf('Expected the callback set for the "integrations" option to return a list of integrations. Got: "%s".', \gettype($integrations)));
Copy file name to clipboardExpand all lines: src/State/Scope.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -208,7 +208,7 @@ public function getUser(): ?UserDataBag
208
208
publicfunctionsetUser($user): self
209
209
{
210
210
if (!\is_array($user) && !$userinstanceof UserDataBag) {
211
-
thrownew \TypeError(\sprintf('The $user argument must be either an array or an instance of the "%s" class. Got: "%s".', UserDataBag::class, get_debug_type($user)));
211
+
thrownew \TypeError(\sprintf('The $user argument must be either an array or an instance of the "%s" class. Got: "%s".', UserDataBag::class, \gettype($user)));
0 commit comments