Closed lkmadushan closed 3 years ago
Fix: it seems like this line https://github.com/blackfireio/php-sdk/blob/ef112f9b49c9936523f997555548513e3a223f5a/src/Blackfire/Bridge/Laravel/ObservableCommandProvider.php#L36 has type hinted to receive CommandStarting object but it can be a ScheduledTaskStarting object as well.
Hi @lkmadushan. Thanks a lot for raising the issue ... and fixing it. You're awesome! I'll push a fix as soon as possible.
Applied fix doesn't work properly. It obviously helps to get rid of the mentioned error, but there is another one:
Undefined property: Illuminate\Console\Events\ScheduledTaskStarting::$input {"exception":"[object] (ErrorException(code: 0): Undefined property: Illuminate\\Console\\Events\\ScheduledTaskStarting::$input at /home/forge/xxxxxxxxxx/releases/123123123/vendor/blackfire/php-sdk/src/Blackfire/Bridge/Laravel/ObservableCommandProvider.php:37)
Hi @dusandevic. Thank you for raising this. I am exploring this so as to push a fix as soon as possible.
@dusandevic The fix is in production: https://github.com/blackfireio/php-sdk/releases/tag/v1.27.1