diff --git a/src/Driver/OCI8/Connection.php b/src/Driver/OCI8/Connection.php index 1bc5c62cede..b05892f9666 100644 --- a/src/Driver/OCI8/Connection.php +++ b/src/Driver/OCI8/Connection.php @@ -78,7 +78,8 @@ public function getServerVersion() throw Error::new($this->dbh); } - assert(preg_match('/\s+(\d+\.\d+\.\d+\.\d+\.\d+)\s+/', $version, $matches) === 1); + $result = preg_match('/\s+(\d+\.\d+\.\d+\.\d+\.\d+)\s+/', $version, $matches); + assert($result === 1); return $matches[1]; }