We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8324a72 commit 28b9ac0Copy full SHA for 28b9ac0
1 file changed
src/SimpleSAML/Configuration.php
@@ -1206,9 +1206,7 @@ public function getEndpoints(string $endpointType): array
1206
1207
1208
$eps = $this->configuration[$endpointType];
1209
- if (!is_array($eps)) {
1210
- throw new Exception($loc . ': Expected array or string.');
1211
- }
+ Assert::isArray($eps, Error\CriticalConfigurationError::class);
1212
1213
$eps_count = count($eps);
1214
0 commit comments