Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #27 from mallgroup/cleanup-composer
Browse files Browse the repository at this point in the history
Cleanup dependency
  • Loading branch information
bckp authored Jan 18, 2023
2 parents 35862d6 + 966aba8 commit 8345275
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"ext-pcntl": "*",
"bunny/bunny": "^0.5",
"symfony/console": "~3.3 || ^4.0 || ^5.0 || ^6.0",
"nette/di": "^3.0.7",
"nette/utils": "^3.2.0",
"nette/di": "^3.1.0",
"nette/schema": "^1.2"
},
"require-dev": {
Expand Down
8 changes: 1 addition & 7 deletions src/DI/RabbitMQExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Nette\DI\Definitions\Statement;
use Nette\DI\PhpGenerator;
use Nette\PhpGenerator\Literal;
use Nette\PhpGenerator\PhpLiteral;
use Nette\Schema\Expect;
use Nette\Schema\Schema;

Expand Down Expand Up @@ -108,12 +107,7 @@ protected function processConfig(PhpGenerator $generator, mixed &$item): void
$this->processConfig($generator, $value);
}
} elseif ($item instanceof Statement) {
if (class_exists(Literal::class)) {
$item = new Literal($generator->formatStatement($item));
} else {
/** @psalm-suppress DeprecatedClass */
$item = new PhpLiteral($generator->formatStatement($item));
}
$item = new Literal($generator->formatStatement($item));
}
}
}

0 comments on commit 8345275

Please sign in to comment.