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

Non-static method GraphQL\Util\StringLiteralFormatter::isVariable() cannot be called statically #85

Open
Lenny4 opened this issue Nov 24, 2023 · 0 comments

Comments

@Lenny4
Copy link

Lenny4 commented Nov 24, 2023

php -v
PHP 8.2.4 (cli) (built: Mar 14 2023 17:54:25) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.2.4, Copyright (c) Zend Technologies
    with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans

I got error:
Non-static method GraphQL\Util\StringLiteralFormatter::isVariable() cannot be called statically when I try to:

$client->runQuery($gql);

When I look in file src/Util/StringLiteralFormatter.php we can see in function formatValueForRHS that isVariable is called statically

image

While the function doesn't have the static attribute

private function isVariable(string $value): bool
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