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

fix: for symfony 6 and php8.1 #67

Merged
merged 1 commit into from
Jun 23, 2023
Merged

fix: for symfony 6 and php8.1 #67

merged 1 commit into from
Jun 23, 2023

Conversation

aszenz
Copy link
Contributor

@aszenz aszenz commented Jun 23, 2023

Required before fixing tests for graphlite-bundle
I suggest we fix this pkg first

@aszenz aszenz mentioned this pull request Jun 23, 2023
@aszenz
Copy link
Contributor Author

aszenz commented Jun 23, 2023

Relates to thecodingmachine/graphqlite-bundle#174

*
* Value "graphql" is reserved for errors produced by query parsing or validation, do not use it.
*/
public function getCategory(): string
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClientAware no longer has this method now, see webonyx/graphql-php#830 for why they removed the category

/**
* Returns the "extensions" object attached to the GraphQL error.
*
* @return array<string, mixed>
*/
public function getExtensions(): array
{
$extensions = [];
$extensions = ['category' => 'Validate'];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep tests running and for backwards compatibility i added category to extensions manually

@nguyenk nguyenk merged commit 671f5d1 into thecodingmachine:6.0 Jun 23, 2023
@nguyenk
Copy link
Member

nguyenk commented Jun 23, 2023

Thank you so much @aszenz !!

@aszenz aszenz deleted the 6.0 branch June 26, 2023 06:48
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

Successfully merging this pull request may close these issues.

2 participants