diff --git a/modules/core/lib/Auth/UserPassBase.php b/modules/core/lib/Auth/UserPassBase.php
index bc05f61967cf976ac80f323a148759dfd215a5be..474d0a03bbfc66a043978f6ded6ed8699f00c469 100644
--- a/modules/core/lib/Auth/UserPassBase.php
+++ b/modules/core/lib/Auth/UserPassBase.php
@@ -196,7 +196,7 @@ abstract class sspmod_core_Auth_UserPassBase extends SimpleSAML_Auth_Source {
 	      }
 
 	      $attributes = $this->login($username, $password);
-	      assert('is_array($attributes)');
+	      assert(is_array($attributes));
 	      $state['Attributes'] = $attributes;
 
 	      return;