Skip to content

Commit

Permalink
phpstan: fix issues with type in latest nette/di
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Oct 13, 2021
1 parent bfb7a33 commit d869622
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Bridges/NetteDI/DbalExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


use Nette\DI\CompilerExtension;
use Nette\DI\Definitions\ServiceDefinition;
use Nextras\Dbal\Bridges\NetteTracy\BluescreenQueryPanel;
use Nextras\Dbal\Bridges\NetteTracy\ConnectionPanel;
use Nextras\Dbal\Connection;
Expand All @@ -27,7 +28,9 @@ protected function setupConnection(array $config): void
{
$builder = $this->getContainerBuilder();

$definition = $builder->addDefinition($this->prefix('connection'))
/** @var ServiceDefinition */
$definition = $builder->addDefinition($this->prefix('connection')); // @phpstan-ignore-line
$definition = $definition
->setType(Connection::class)
->setArguments([
'config' => $config,
Expand Down

0 comments on commit d869622

Please sign in to comment.