Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Known Fatal error with join() function #11

Closed
OzzyCzech opened this issue Feb 22, 2021 · 0 comments
Closed

Known Fatal error with join() function #11

OzzyCzech opened this issue Feb 22, 2021 · 0 comments

Comments

@OzzyCzech
Copy link
Owner

There is an issue with join() function https://www.php.net/manual/en/function.join.php

Waiting for merge PR: wp-cli/php-cli-tools#142

vendor/bin/potrans --apikey "123456"  --input ./tests/example-cs_CZ.po --verbose --output ./tests/out.po

Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /Volumes/Work/test/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php:485
Stack trace:
#0 /Volumes/Work/test/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php(485): join(Array, ' ')
#1 /Volumes/Work/test/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php(401): cli\Arguments->_parseOption(Object(cli\arguments\Argument))
#2 /Volumes/Work/test/vendor/om/potrans/src/potrans.php(44): cli\Arguments->parse()
#3 /Volumes/Work/test/vendor/om/potrans/bin/potrans(3): require('/Volumes/Work/t...')
#4 {main}
  thrown in /Volumes/Work/test/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php on line 485

PS: can be temporary fixed by swapping args in vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php on line 485

@OzzyCzech OzzyCzech pinned this issue Feb 22, 2021
@OzzyCzech OzzyCzech unpinned this issue Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant