Replace PHPStan with Psalm
This commit is contained in:
@@ -85,8 +85,6 @@ final class ContextServiceEnvironmentHandler implements EnvironmentHandler
|
||||
}
|
||||
|
||||
/**
|
||||
* @param UninitializedSymfonyExtensionEnvironment $uninitializedEnvironment
|
||||
*
|
||||
* @throws EnvironmentIsolationException
|
||||
*/
|
||||
public function isolateEnvironment(Environment $uninitializedEnvironment, $testSubject = null): Environment
|
||||
@@ -174,6 +172,8 @@ final class ContextServiceEnvironmentHandler implements EnvironmentHandler
|
||||
}
|
||||
|
||||
/**
|
||||
* @psalm-assert UninitializedSymfonyExtensionEnvironment $uninitializedEnvironment
|
||||
*
|
||||
* @throws EnvironmentIsolationException
|
||||
*/
|
||||
private function assertEnvironmentCanBeIsolated(Environment $uninitializedEnvironment, $testSubject): void
|
||||
|
||||
@@ -49,7 +49,7 @@ final class InitializedSymfonyExtensionEnvironment implements SymfonyExtensionEn
|
||||
{
|
||||
$callable = $callee->getCallable();
|
||||
|
||||
if ($callee->isAnInstanceMethod()) {
|
||||
if (is_array($callable) && $callee->isAnInstanceMethod()) {
|
||||
return [$this->getContext($callable[0]), $callable[1]];
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ final class UninitializedSymfonyExtensionEnvironment extends StaticEnvironment i
|
||||
/** @var string[] */
|
||||
private $contexts;
|
||||
|
||||
/** @var ContextEnvironment|null */
|
||||
/** @var ContextEnvironment */
|
||||
private $delegatedEnvironment;
|
||||
|
||||
public function __construct(Suite $suite, array $contexts, ContextEnvironment $delegatedEnvironment)
|
||||
|
||||
Reference in New Issue
Block a user