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
*/
36
2
public function addExtension($class)
37
{
38
2
$this->extensions[$class] = new InterfaceExtensionDefinition($class);