other minor tweaks based on new sqlauth upstream module
authorAndrew Engelbrecht <andrew@fsf.org>
Wed, 17 Nov 2021 22:20:55 +0000 (17:20 -0500)
committerAndrew Engelbrecht <andrew@fsf.org>
Wed, 17 Nov 2021 22:20:55 +0000 (17:20 -0500)
lib/Auth/Source/FSFDrupalAuth.php

index 669b1ccc9e95058e15db99ae56b4f6346d66389a..4acf2babad500dfc5dc4a8dc70222a3f7d3fcfb9 100644 (file)
@@ -89,7 +89,7 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase
     /**
      * Create a database connection.
      *
-     * @return \PDO  The database connection.
+     * @return PDO  The database connection.
      */
     private function connect()
     {
@@ -214,7 +214,7 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase
         }
 
         try {
-            $data = $sth->fetchAll(\PDO::FETCH_ASSOC);
+            $data = $sth->fetchAll(PDO::FETCH_ASSOC);
         } catch (PDOException $e) {
             throw new Exception('fsfdrupalauth:'.$this->authId.
                 ': - Failed to fetch result set: '.$e->getMessage());