Skip to content

Commit

Permalink
Fix some psalm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Jul 31, 2021
1 parent b729110 commit f36e86b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
18 changes: 0 additions & 18 deletions tests/Controller/CRUDControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@ final class CRUDControllerTest extends TestCase
*/
private $logger;

/**
* @var bool
*/
private $httpMethodParameterOverride = false;

/**
* @var Stub&FormFactoryInterface
*/
Expand All @@ -166,7 +161,6 @@ final class CRUDControllerTest extends TestCase

protected function setUp(): void
{
$this->httpMethodParameterOverride = Request::getHttpMethodParameterOverride();
$this->container = new Container();
$this->request = new Request();
$this->pool = new Pool($this->container, ['foo.admin']);
Expand Down Expand Up @@ -312,18 +306,6 @@ static function (string $name, object $object, array $parameters = []): string {
}
}

protected function tearDown(): void
{
parent::tearDown();

if (!$this->httpMethodParameterOverride && Request::getHttpMethodParameterOverride()) {
$disableHttpMethodParameterOverride = \Closure::bind(static function (): void {
self::$httpMethodParameterOverride = false;
}, null, Request::class);
$disableHttpMethodParameterOverride();
}
}

public function testRenderJson1(): void
{
$data = ['example' => '123', 'foo' => 'bar'];
Expand Down
4 changes: 2 additions & 2 deletions tests/Twig/Extension/SonataAdminExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ final class SonataAdminExtensionTest extends TestCase
private $environment;

/**
* @var AdminInterface<object>&MockObject
* @var AdminInterface<\stdClass>&MockObject
*/
private $admin;

/**
* @var AdminInterface<object>&MockObject
* @var AdminInterface<\stdClass>&MockObject
*/
private $adminBar;

Expand Down

0 comments on commit f36e86b

Please sign in to comment.