The expression return $this->extensions returns the type string[] which is incompatible with the documented return type Ynlo\GraphQLBundle\Defin...ceExtensionDefinition[].
Loading history...
31
}
32
33
/**
34
* @param string $class
35
* @param int $priority
36
*/
37
1
public function addExtension($class, $priority = 0)
38
{
39
1
$this->extensions[$class] = new InterfaceExtensionDefinition($class, $priority);