Skip to content
Snippets Groups Projects
Commit 5ff8d28d authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Fix problem with ILS driver capability checks, for PHP 8 compatibility.

parent e3807c29
No related merge requests found
...@@ -938,8 +938,7 @@ class Connection implements TranslatorAwareInterface, LoggerAwareInterface ...@@ -938,8 +938,7 @@ class Connection implements TranslatorAwareInterface, LoggerAwareInterface
// the driver class without wasting time initializing it; if NoILS // the driver class without wasting time initializing it; if NoILS
// failover is enabled, we have to initialize the driver object now // failover is enabled, we have to initialize the driver object now
// to be sure we are checking capabilities on the appropriate class. // to be sure we are checking capabilities on the appropriate class.
$driverToCheck = $this->hasNoILSFailover() $driverToCheck = $this->getDriver($this->hasNoILSFailover());
? $this->getDriver() : $this->getDriverClass();
// First check that the function is callable: // First check that the function is callable:
if (is_callable([$driverToCheck, $method])) { if (is_callable([$driverToCheck, $method])) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment