gharlan / alfred-github-workflow

GitHub Workflow for Alfred
MIT License
2.89k stars 147 forks source link

Mac 12.0.1 and php 8.1.0 - I cannot auth using GitHub token #128

Closed krzysztofzuraw closed 2 years ago

krzysztofzuraw commented 3 years ago

Hi, I cannot authenticate using GitHub token.

Log from Alfred (I've removed ghp_ and added ghp_XXX):

Passing output '> login ghp_XXX' to Run Script
[18:05:41.780] STDERR: GitHub[Run Script] PHP Deprecated:  ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/private/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9590E013-BA7C-4FA1-86DC-117DCE588E26/workflow.php on line 47

PHP version:

php -v
PHP 8.1.0 (cli) (built: Nov 28 2021 01:44:44) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.0, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.0, Copyright (c), by Zend Technologies

What PHP version seems to work fine with workflow?

krzysztofzuraw commented 3 years ago

It turns out that I have to downgrade PHP to 8.0 version 😄