The expression return $this->environment returns the type League\CommonMark\Environment\EnvironmentInterface which includes types incompatible with the type-hinted return League\CommonMark\Environment\Environment.
Loading history...
46
}
47
48
public function addExtension(ExtensionInterface $extension): void
The method addExtension() does not exist on League\CommonMark\Environment\EnvironmentInterface. Since it exists in all sub-types, consider adding an abstract or default implementation to League\CommonMark\Environment\EnvironmentInterface.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation