Since $instance is declared private, accessing it with static will lead to errors in possible sub-classes; you can either use self, or increase the visibility of $instance to at least protected.
The expression return static::instance could return the type null which is incompatible with the type-hinted return Coco\SourceWatcher\Utils\i18n. Consider adding an additional type-check to rule them out.
Loading history...
24
}
25
26
public function getText ( string $language = "en_US", string $className, string $entry ) : string