-
Notifications
You must be signed in to change notification settings - Fork 441
Open
@faldor20
Description
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
.
public function getDbalConnection(): Connection { if (false == $this->connection) { $connection = call_user_func($this->connectionFactory); if (false == $connection instanceof Connection) { throw new \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
Metadata
Metadata
Assignees
Labels
No labels