Skip to content

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

@Lenny4

Description

@Lenny4
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions