Skip to content

Commit 28b9ac0

Browse files
committed
Fix incorrect error-message
1 parent 8324a72 commit 28b9ac0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/SimpleSAML/Configuration.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,9 +1206,7 @@ public function getEndpoints(string $endpointType): array
12061206

12071207

12081208
$eps = $this->configuration[$endpointType];
1209-
if (!is_array($eps)) {
1210-
throw new Exception($loc . ': Expected array or string.');
1211-
}
1209+
Assert::isArray($eps, Error\CriticalConfigurationError::class);
12121210

12131211
$eps_count = count($eps);
12141212

0 commit comments

Comments
 (0)