I'm getting a type mismatch error when trying to run the workflow.
PHP Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /Users/XXX/.alfred/Alfred.alfredpreferences/workflows/user.workflow.C299EBF5-4D09-4578-93C8-6CF567D738FD/workflow.php:210
Stack trace:
#0 /Users/XXX/.alfred/Alfred.alfredpreferences/workflows/user.workflow.C299EBF5-4D09-4578-93C8-6CF567D738FD/workflow.php(210): array_merge(Array, NULL)
#1 /Users/XXX/.alfred/Alfred.alfredpreferences/workflows/user.workflow.C299EBF5-4D09-4578-93C8-6CF567D738FD/workflow.php(303): Workflow::requestCache('https://api.git...', Object(Curl), Object(Closure), false, 10)
#2 /Users/XXX/.alfred/Alfred.alfredpreferences/workflows/user.workflow.C299EBF5-4D09-4578-93C8-6CF567D738FD/search.php(231): Workflow::requestApi('https://api.git...', Object(Curl), Object(Closure))
#3 /Users/XXX/.alfred/Alfred.alfredpreferences/workflows/user.workflow.C299EBF5-4D09-4578-93C8-6CF567D738FD/search.php(253): Search::{closure:Search::addDefaultCommands():230}('/user/subscript...', 2)
#4 /Users/XXX/.alfred/Alfred.alfredpreferences/workflows/user.workflow.C299EBF5-4D09-4578-93C8-6CF567D738FD/search.php(82): Search::addDefaultCommands(false, false, false, NULL)
#5 /Users/XXX/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/7D7AFFF8-EE32-485D-8B35-F67013002527(5): Search::run('github', '', '0')
#6 {main}
thrown in /Users/XXX/.alfred/Alfred.alfredpreferences/workflows/user.workflow.C299EBF5-4D09-4578-93C8-6CF567D738FD/workflow.php on line 210
I was able to hotwire the script to get it working again by editing the array_merge on line 210 in workflow.php to explicitly type the parameters:
$content = array_merge((array)$content, (array)json_decode($data->content));
I don't have time to dig into it further at the moment, so there may be other bits that need fixing. Thanks for the great workflow!
I'm getting a type mismatch error when trying to run the workflow.
I was able to hotwire the script to get it working again by editing the
array_mergeon line 210 inworkflow.phpto explicitly type the parameters:I don't have time to dig into it further at the moment, so there may be other bits that need fixing. Thanks for the great workflow!