[TOOLS] Continue raising PHPStan level to 6

This commit is contained in:
2022-10-19 22:39:17 +01:00
parent c31f3d4997
commit 2fd46ca886
89 changed files with 646 additions and 278 deletions

View File

@@ -52,11 +52,11 @@ use Symfony\Component\DependencyInjection\Reference;
class ModuleManager
{
protected static $loader;
protected static \Composer\Autoload\ClassLoader $loader;
/**
* @codeCoverageIgnore
*/
public static function setLoader($l)
public static function setLoader(\Composer\Autoload\ClassLoader $l)
{
self::$loader = $l;
}
@@ -161,7 +161,7 @@ class ModuleManager
/**
* Serialize this class, for dumping into the cache
*/
public static function __set_state($state)
public static function __set_state(array $state): self
{
$obj = new self();
$obj->modules = $state['modules'];