We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 381dfdb commit 62e5185Copy full SHA for 62e5185
source/CAS/Client.php
@@ -2545,7 +2545,7 @@ public function setPGTStorageDb(
2545
$this->ensureIsProxy();
2546
2547
// Argument validation
2548
- if ((is_object($dsn_or_pdo) && !($dsn_or_pdo instanceof PDO)) || gettype($dsn_or_pdo) != 'string')
+ if (!(is_object($dsn_or_pdo) && $dsn_or_pdo instanceof PDO) && gettype($dsn_or_pdo) != 'string')
2549
throw new CAS_TypeMismatchException($dsn_or_pdo, '$dsn_or_pdo', 'string or PDO object');
2550
if (gettype($username) != 'string')
2551
throw new CAS_TypeMismatchException($username, '$username', 'string');
0 commit comments