Skip to content

Commit 9963fd5

Browse files
committed
Use Webmozart for assertions
1 parent fac0eb4 commit 9963fd5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Auth/Process/Warning.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace SimpleSAML\Module\preprodwarning\Auth\Process;
44

5+
use Webmozart\Assert\Assert;
6+
57
/**
68
* Give a warning that the user is accessing a test system, not a production system.
79
*
@@ -21,7 +23,7 @@ class Warning extends \SimpleSAML\Auth\ProcessingFilter
2123
*/
2224
public function process(&$state)
2325
{
24-
assert(is_array($state));
26+
Assert::isArray($state);
2527

2628
if (isset($state['isPassive']) && $state['isPassive'] === true) {
2729
// We have a passive request. Skip the warning

0 commit comments

Comments
 (0)