diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 60761206..344ddfe1 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -9,6 +9,7 @@ $config ->setRules([ '@PSR2' => true, + 'nullable_type_declaration_for_default_null_value' => true, ]) ->setFinder($finder) ; diff --git a/src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php b/src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php index 3de5e4d4..e359c941 100644 --- a/src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php +++ b/src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php @@ -212,7 +212,7 @@ private function sendCheckIn(CheckIn $checkIn): void SentrySdk::getCurrentHub()->captureEvent($event); } - private function createCheckIn(string $slug, CheckInStatus $status, string $id = null): CheckIn + private function createCheckIn(string $slug, CheckInStatus $status, ?string $id = null): CheckIn { $options = SentrySdk::getCurrentHub()->getClient()->getOptions();