drupal-graphql/graphql

PHP reserved word "string" used in a namespace

FatherShawn opened this issue · 1 comments

namespace Drupal\graphql\Plugin\GraphQL\DataProducer\String;

This namespace final segment should be changed, perhaps to Strings as all scalar types are now reserved words in PHP
https://www.php.net/manual/en/reserved.other-reserved-words.php

The documentation on php.net is out of date with this RFC as of PHP 8.0:
https://wiki.php.net/rfc/namespaced_names_as_token