You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Only use caching of the parsed document if we aren't in development mode.
116
-
$cid = "schema:{$this->getPluginId()}";
117
-
if (empty($this->inDevelopment) && $cache = $this->astCache->get($cid)) {
118
-
return$cache->data;
116
+
$baseDefinition = $this->getSchemaDefinition();
117
+
if (!$baseDefinitioninstanceof Source) {
118
+
@trigger_error('Returning a ' . get_debug_type($baseDefinition) . ' from `getSchemaDefinition` is deprecated in graphql:4.6 and is disallowed from graphql:5.0.0. Return \GraphQL\Language\Source instead. See https://www.drupal.org/node/', E_USER_DEPRECATED);
if (!$definitioninstanceof Source && $definition !== NULL) {
126
+
@trigger_error('Returning a ' . get_debug_type($definition) . ' from `getBaseDefinition` is deprecated in graphql:4.6 and is disallowed from graphql:5.0.0. Return \GraphQL\Language\Source|NULL instead. See https://www.drupal.org/node/', E_USER_DEPRECATED);
if (!$definitioninstanceof Source && $definition !== NULL) {
173
+
@trigger_error('Returning a ' . get_debug_type($definition) . ' from `getExtensionDefinition` is deprecated in graphql:4.6 and is disallowed from graphql:5.0.0. Return \GraphQL\Language\Source|NULL instead. See https://www.drupal.org/node/', E_USER_DEPRECATED);
0 commit comments