We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fac0eb4 commit 9963fd5Copy full SHA for 9963fd5
lib/Auth/Process/Warning.php
@@ -2,6 +2,8 @@
2
3
namespace SimpleSAML\Module\preprodwarning\Auth\Process;
4
5
+use Webmozart\Assert\Assert;
6
+
7
/**
8
* Give a warning that the user is accessing a test system, not a production system.
9
*
@@ -21,7 +23,7 @@ class Warning extends \SimpleSAML\Auth\ProcessingFilter
21
23
*/
22
24
public function process(&$state)
25
{
- assert(is_array($state));
26
+ Assert::isArray($state);
27
28
if (isset($state['isPassive']) && $state['isPassive'] === true) {
29
// We have a passive request. Skip the warning
0 commit comments