We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e17f675 commit 8c74012Copy full SHA for 8c74012
1 file changed
src/Plugin/GraphQL/Traits/DescribablePluginTrait.php
@@ -11,10 +11,15 @@ trait DescribablePluginTrait {
11
*/
12
protected function buildDescription($definition) {
13
if (!empty($definition['description']) && !is_null($definition['description'])) {
14
- return (string) ($definition['description']);
+ try {
15
+ return (string) ($definition['description']);
16
+ }
17
+ catch (\TypeError $e) {
18
+ return '';
19
20
}
21
- return NULL;
22
23
24
25
0 commit comments