drupal-graphql / drupal-graphql/graphql-views

PHP 8.2 update: Access array offset on value of type null

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
10
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Avoid lots of warnings in dblog with this patch.

Environment built with these new components:
- Drupal 10.1.4
- PHP 8.2.11

Notifications to eliminate:
- Warning: Trying to access array offset on value of type null in Drupal\graphql_views\Plugin\GraphQL\Fields\View->resolveValues() (line 101 of C:\xampp\htdocs\cia-drupal\docroot\modules\contrib\graphql_views\src\Plugin\GraphQL\Fields\View.php)
- Warning: Trying to access array offset on value of type null in Drupal\graphql_views\Plugin\GraphQL\Fields\View->Drupal\graphql_views\Plugin\GraphQL\Fields\{closure}() (line 118 of C:\xampp\htdocs\cia-drupal\docroot\modules\contrib\graphql_views\src\Plugin\GraphQL\Fields\View.php)

[array_offset_on_value_of_type_null.patch](https://github.com/drupal-graphql/graphql-views/files/13181666/array_offset_on_value_of_type_null.patch)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.