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
The text was updated successfully, but these errors were encountered:
phinor
changed the title
Callable supplied as array is not added when adding job
Callable supplied as array generates error when being added
Nov 7, 2019
phinor
pushed a commit
to phinor/php-cron-scheduler
that referenced
this issue
Nov 8, 2019
Environment
PHP 7.2
composer require peppeocchi/php-cron-scheduler:^3.0
How to Reproduce
Expected Behaviour
The method
MyClass::staticMethod()
is called every minute.Observed Behaviour
An error is generated:
spl_object_hash() expects parameter 1 to be object, array given
on line 162 of Job.phpPossible Solutions
Adjust the if-statement from lines 158 to 163 to read:
The text was updated successfully, but these errors were encountered: