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
in this case calling artisan schedule:run fails with the error
2023-07-06 10:43:26 Running [Callback] .......................................... 0ms FAIL
TypeError
JackWH\LaravelNewRelic\NewRelicTransactionHandler::parseTaskCommand(): Argument #1 ($taskCommand) must be of type string, null given, called in /application/vendor/jackwh/laravel-new-relic/src/NewRelicTransactionHandler.php on line 205
at vendor/jackwh/laravel-new-relic/src/NewRelicTransactionHandler.php:269
265▕
266▕ /**
267▕ * Parse a command string for a scheduled task, returning it in a simplified format.
268▕ */
➜ 269▕ protected function parseTaskCommand(string $taskCommand): string
270▕ {
271▕ $formattedCommand = Str::of($taskCommand)
272▕ ->afterLast("'artisan' ")
273▕ ->afterLast("artisan ")
+20 vendor frames
21 artisan:35
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
The text was updated successfully, but these errors were encountered:
It's possible to set scheduled task as callable class inside
\App\Console\Kernel
, like this:in this case calling
artisan schedule:run
fails with the errorThe text was updated successfully, but these errors were encountered: