You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
enque/dbal v0.10.25 incorrectly claims php 7.4 support #1393
When using enque/dbal v0.10.25 with php 7.4 the follwing error is thrown: Cannot use ::class with dynamic class name
The following code snippet of DbalContext.php shows the use of $connection::class.
publicfunctiongetDbalConnection(): Connection
{
if (false == $this->connection) {
$connection = call_user_func($this->connectionFactory);
if (false == $connectioninstanceof Connection) {
thrownew \LogicException(sprintf('The factory must return instance of Doctrine\DBAL\Connection. It returns %s', is_object($connection) ? $connection::class : gettype($connection)));
}
$this->connection = $connection;
}
return$this->connection;
}
Using ::class on a variable is a php 8.0 feature, not available in php 7.4
Activity