Skip to content

Commit 0621079

Browse files
authored
Merge pull request #1 from pradtke/php72
Clean up deprecated assert syntax
2 parents b40daad + dec34f1 commit 0621079

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/Auth/Process/PersistentNameID.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class sspmod_shib2idpnameid_Auth_Process_PersistentNameID extends sspmod_saml_Ba
2323
public function __construct($config, $reserved)
2424
{
2525
parent::__construct($config, $reserved);
26-
assert('is_array($config)');
26+
assert(is_array($config));
2727

2828
$this->format = SAML2_Const::NAMEID_PERSISTENT;
2929

lib/Auth/Process/PersistentNameID2TargetedID.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class sspmod_saml_Auth_Process_PersistentNameID2TargetedID extends SimpleSAML_Au
3030
public function __construct($config, $reserved)
3131
{
3232
parent::__construct($config, $reserved);
33-
assert('is_array($config)');
33+
assert(is_array($config));
3434

3535
if (isset($config['attribute'])) {
3636
$this->attribute = (string) $config['attribute'];
@@ -52,7 +52,7 @@ public function __construct($config, $reserved)
5252
*/
5353
public function process(&$state)
5454
{
55-
assert('is_array($state)');
55+
assert(is_array($state));
5656

5757
if (!isset($state['saml:NameID'][SAML2_Const::NAMEID_PERSISTENT])) {
5858
SimpleSAML\Logger::warning('Unable to generate eduPersonTargetedID because no persistent NameID was available.');

0 commit comments

Comments
 (0)