Skip to content

Commit 0eb2712

Browse files
committed
Fix Psalm-issues
1 parent 0b1e2d2 commit 0eb2712

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

psalm-dev.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<UnresolvableInclude>
2222
<errorLevel type="suppress">
2323
<file name="tests/bootstrap.php" />
24+
<file name="tests/routers/configLoader.php" />
2425
</errorLevel>
2526
</UnresolvableInclude>
2627
</issueHandlers>

psalm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
reportMixedIssues="false"
77
>
88
<projectFiles>
9-
<directory name="config-templates" />
9+
<directory name="config" />
10+
<directory name="public" />
1011
<directory name="src" />
11-
<directory name="www" />
1212
</projectFiles>
1313

1414
<issueHandlers>

src/Cas/Protocol/SamlValidateResponder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function convertToSaml(array $ticket): Chunk
6464

6565
/**
6666
* @param \SimpleSAML\XML\SerializableElementInterface $samlResponse
67-
* @return \SimpleSAML\XML\SOAP11\XML\env\Envelope
67+
* @return \SimpleSAML\SOAP11\XML\env\Envelope
6868
*/
6969
public function wrapInSoap(SerializableElementInterface $samlResponse): Envelope
7070
{

tests/public/LoginIntegrationTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace SimpleSAML\Casserver;
66

7+
use CurlHandle;
78
use DOMDocument;
89
use PHPUnit\Framework\TestCase;
910
use SimpleSAML\Configuration;
@@ -452,10 +453,10 @@ private function authenticate(): void
452453

453454
/**
454455
* TODO: migrate into BuiltInServer
455-
* @param resource $ch
456+
* @param \CurlHandle $ch
456457
* @return array
457458
*/
458-
private function execAndHandleCurlResponse($ch): array
459+
private function execAndHandleCurlResponse(CurlHandle $ch): array
459460
{
460461
$resp = curl_exec($ch);
461462
if ($resp === false) {

tests/src/Cas/Protocol/SamlValidateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testSamlValidatXmlGeneration(): void
4747

4848
$asSoap = $samlValidate->wrapInSoap($xmlString);
4949

50-
$this->assertInstanceOf($asSoap, Envelope::class);
50+
$this->assertInstanceOf(Envelope::class, $asSoap);
5151
$this->assertNull($asSoap->getHeader());
5252
$this->assertNotEmpty($asSoap->getBody());
5353
}

0 commit comments

Comments
 (0)