Closed Lugat closed 3 months ago
We are getting the following error: Object of class TopShelfCraft\Wordsmith\gql\WordsmithDirective could not be converted to string
Could fix it by changing the following code:
TopShelfCraft\Wordsmith\Wordsmith Line: 64 $event->directives[] = WordsmithDirective::create(); to $event->directives[] = WordsmithDirective::class;
$event->directives[] = WordsmithDirective::create();
$event->directives[] = WordsmithDirective::class;
Thanks @Lugat for calling this to my attention. Wordsmith 4.5.0 and 5.0.0 include the change you suggested. ✅
4.5.0
5.0.0
We are getting the following error: Object of class TopShelfCraft\Wordsmith\gql\WordsmithDirective could not be converted to string
Could fix it by changing the following code:
TopShelfCraft\Wordsmith\Wordsmith Line: 64
$event->directives[] = WordsmithDirective::create();
to$event->directives[] = WordsmithDirective::class;