Skip to content

Commit 56a8949

Browse files
committed
Psalter: Remove obsolete annotations
1 parent dc7ce85 commit 56a8949

16 files changed

Lines changed: 0 additions & 21 deletions

File tree

lib/SimpleSAML/Auth/State.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@ public static function loadExceptionState(?string $id = null): ?array
389389
$id = $_REQUEST[self::EXCEPTION_PARAM];
390390
}
391391

392-
/** @var array $state */
393392
$state = self::loadState($id, self::EXCEPTION_STAGE);
394393
Assert::keyExists($state, self::EXCEPTION_DATA);
395394

lib/SimpleSAML/IdP/TraditionalLogoutHandler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ public function onResponse(string $assocId, ?string $relayState, Error\Exception
107107
throw new Error\Exception('RelayState lost during logout.');
108108
}
109109

110-
/** @psalm-var array $state */
111110
$state = Auth\State::loadState($relayState, 'core:LogoutTraditional');
112111

113112
if ($error === null) {

lib/SimpleSAML/Utils/Attributes.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public function normalizeAttributesArray(array $attributes): array
7272
$newAttrs = [];
7373
foreach ($attributes as $name => $values) {
7474
if (!is_string($name)) {
75-
/** @var string $name */
7675
$name = print_r($name, true);
7776
throw new InvalidArgumentException(sprintf('Invalid attribute name: "%s".', $name));
7877
}
@@ -82,7 +81,6 @@ public function normalizeAttributesArray(array $attributes): array
8281

8382
foreach ($values as $value) {
8483
if (!is_string($value)) {
85-
/** @var string $value */
8684
$value = print_r($value, true);
8785
throw new InvalidArgumentException(
8886
sprintf('Invalid attribute value for attribute %s: "%s".', $name, $value)

modules/core/lib/Auth/UserPassBase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ abstract protected function login(string $username, string $password): array;
284284
public static function handleLogin(string $authStateId, string $username, string $password): void
285285
{
286286
// Here we retrieve the state array we saved in the authenticate-function.
287-
/** @var array $state */
288287
$state = Auth\State::loadState($authStateId, self::STAGEID);
289288

290289
// Retrieve the authentication source we are executing.

modules/core/lib/Auth/UserPassOrgBase.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ public static function handleLogin(
270270
string $organization
271271
): void {
272272
/* Retrieve the authentication state. */
273-
/** @var array $state */
274273
$state = Auth\State::loadState($authStateId, self::STAGEID);
275274

276275
/* Find authentication source. */
@@ -330,7 +329,6 @@ public static function handleLogin(
330329
public static function listOrganizations(string $authStateId): ?array
331330
{
332331
/* Retrieve the authentication state. */
333-
/** @var array $state */
334332
$state = Auth\State::loadState($authStateId, self::STAGEID);
335333

336334
/* Find authentication source. */

modules/core/lib/Controller/Exception.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ public function cardinality(Request $request): Response
6565
throw new Error\BadRequest('Missing required StateId query parameter.');
6666
}
6767

68-
/** @var array $state */
6968
$state = Auth\State::loadState($stateId, 'core:cardinality');
70-
7169
Logger::stats(
7270
'core:cardinality:error ' . $state['Destination']['entityid'] . ' ' . $state['saml:sp:IdP'] .
7371
' ' . implode(',', array_keys($state['core:cardinality:errorAttributes']))
@@ -126,7 +124,6 @@ public function shortSsoInterval(Request $request): Response
126124
throw new Error\BadRequest('Missing required StateId query parameter.');
127125
}
128126

129-
/** @var array $state */
130127
$state = Auth\State::loadState($stateId, 'core:short_sso_interval');
131128

132129
$continue = $request->query->get('continue', false);

modules/core/www/idp/logout-iframe-done.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
throw new \SimpleSAML\Error\BadRequest('Missing required parameter: id');
55
}
66

7-
/** @psalm-var array $state */
87
$state = \SimpleSAML\Auth\State::loadState($_REQUEST['id'], 'core:Logout-IFrame');
98
$idp = \SimpleSAML\IdP::getByState($state);
109

modules/core/www/idp/logout-iframe.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
\SimpleSAML\Stats::log('core:idp:logout-iframe:page', ['type' => $type]);
1919
}
2020

21-
/** @psalm-var array $state */
2221
$state = \SimpleSAML\Auth\State::loadState($_REQUEST['id'], 'core:Logout-IFrame');
2322
$idp = \SimpleSAML\IdP::getByState($state);
2423
$mdh = \SimpleSAML\Metadata\MetaDataStorageHandler::getMetadataHandler();

modules/core/www/idp/resumelogout.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
throw new \SimpleSAML\Error\BadRequest('Missing id-parameter.');
55
}
66

7-
/** @psalm-var array $state */
87
$state = \SimpleSAML\Auth\State::loadState($_REQUEST['id'], 'core:Logout:afterbridge');
98
$idp = \SimpleSAML\IdP::getByState($state);
109

modules/core/www/loginuserpass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
throw new \SimpleSAML\Error\BadRequest('Missing AuthState parameter.');
1414
}
1515
$authStateId = $_REQUEST['AuthState'];
16-
/** @var array $state */
1716
$state = \SimpleSAML\Auth\State::loadState($authStateId, \SimpleSAML\Module\core\Auth\UserPassBase::STAGEID);
1817

1918
/** @var \SimpleSAML\Module\core\Auth\UserPassBase|null $source */

0 commit comments

Comments
 (0)