Deprecate Config::getInstance() method
Dependency injection should be used instead. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
a483c7921d
commit
f7a82ce698
1370
psalm-baseline.xml
1370
psalm-baseline.xml
File diff suppressed because it is too large
Load Diff
@ -118,6 +118,7 @@ class Config
|
||||
$this->selectedServer = (new Server())->asArray();
|
||||
}
|
||||
|
||||
/** @deprecated Use dependency injection instead. */
|
||||
public static function getInstance(): self
|
||||
{
|
||||
if (self::$instance === null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user