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...
25
}
26
27
/**
28
* @return string|null
29
*/
30
private function getLanguageFromEnvFile () : ?string