Skip to content

Commit 8c4ebf0

Browse files
committed
Fix phpstan-issues
1 parent 1ec3ac1 commit 8c4ebf0

3 files changed

Lines changed: 0 additions & 9 deletions

File tree

tests/src/Controller/AuthorizeAllowReAuthenticateOnUnauthorizedTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use SimpleSAML\Configuration;
1010
use SimpleSAML\Module\authorize\Controller;
1111
use SimpleSAML\Session;
12-
use SimpleSAML\XHTML\Template;
1312
use Symfony\Component\HttpFoundation\Request;
1413

1514
/**
@@ -74,10 +73,8 @@ public function testValidRequest()
7473

7574
$c = new Controller\Authorize($this->config, $session);
7675

77-
/** @var \SimpleSAML\XHTML\Template $response */
7876
$response = $c->forbidden($request);
7977

80-
$this->assertInstanceOf(Template::class, $response);
8178
$this->assertTrue($response->isForbidden());
8279
}
8380
}

tests/src/Controller/AuthorizeShowUserAttributeTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use SimpleSAML\Configuration;
1010
use SimpleSAML\Module\authorize\Controller;
1111
use SimpleSAML\Session;
12-
use SimpleSAML\XHTML\Template;
1312
use Symfony\Component\HttpFoundation\Request;
1413

1514
/**
@@ -71,10 +70,8 @@ public function testValidRequest()
7170

7271
$c = new Controller\Authorize($this->config, $session);
7372

74-
/** @var \SimpleSAML\XHTML\Template $response */
7573
$response = $c->forbidden($request);
7674

77-
$this->assertInstanceOf(Template::class, $response);
7875
$this->assertTrue($response->isForbidden());
7976
$this->assertEquals('shown_user_attribute', $response->data['user_attribute']);
8077
}

tests/src/Controller/AuthorizeTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use SimpleSAML\Error;
1111
use SimpleSAML\Module\authorize\Controller;
1212
use SimpleSAML\Session;
13-
use SimpleSAML\XHTML\Template;
1413
use Symfony\Component\HttpFoundation\Request;
1514

1615
/**
@@ -72,10 +71,8 @@ public function testValidRequest()
7271

7372
$c = new Controller\Authorize($this->config, $session);
7473

75-
/** @var \SimpleSAML\XHTML\Template $response */
7674
$response = $c->forbidden($request);
7775

78-
$this->assertInstanceOf(Template::class, $response);
7976
$this->assertTrue($response->isForbidden());
8077
}
8178

0 commit comments

Comments
 (0)