Skip to content

Commit

Permalink
Merge pull request #1 from pradtke/php72
Browse files Browse the repository at this point in the history
Clean up deprecated assert syntax
  • Loading branch information
sitya authored Oct 5, 2018
2 parents b40daad + dec34f1 commit 0621079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Auth/Process/PersistentNameID.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class sspmod_shib2idpnameid_Auth_Process_PersistentNameID extends sspmod_saml_Ba
public function __construct($config, $reserved)
{
parent::__construct($config, $reserved);
assert('is_array($config)');
assert(is_array($config));

$this->format = SAML2_Const::NAMEID_PERSISTENT;

Expand Down
4 changes: 2 additions & 2 deletions lib/Auth/Process/PersistentNameID2TargetedID.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class sspmod_saml_Auth_Process_PersistentNameID2TargetedID extends SimpleSAML_Au
public function __construct($config, $reserved)
{
parent::__construct($config, $reserved);
assert('is_array($config)');
assert(is_array($config));

if (isset($config['attribute'])) {
$this->attribute = (string) $config['attribute'];
Expand All @@ -52,7 +52,7 @@ public function __construct($config, $reserved)
*/
public function process(&$state)
{
assert('is_array($state)');
assert(is_array($state));

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

0 comments on commit 0621079

Please sign in to comment.