Skip to content

Commit 8345275

Browse files
authored
Merge pull request #27 from mallgroup/cleanup-composer
Cleanup dependency
2 parents 35862d6 + 966aba8 commit 8345275

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
"ext-pcntl": "*",
4040
"bunny/bunny": "^0.5",
4141
"symfony/console": "~3.3 || ^4.0 || ^5.0 || ^6.0",
42-
"nette/di": "^3.0.7",
43-
"nette/utils": "^3.2.0",
42+
"nette/di": "^3.1.0",
4443
"nette/schema": "^1.2"
4544
},
4645
"require-dev": {

src/DI/RabbitMQExtension.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use Nette\DI\Definitions\Statement;
2020
use Nette\DI\PhpGenerator;
2121
use Nette\PhpGenerator\Literal;
22-
use Nette\PhpGenerator\PhpLiteral;
2322
use Nette\Schema\Expect;
2423
use Nette\Schema\Schema;
2524

@@ -108,12 +107,7 @@ protected function processConfig(PhpGenerator $generator, mixed &$item): void
108107
$this->processConfig($generator, $value);
109108
}
110109
} elseif ($item instanceof Statement) {
111-
if (class_exists(Literal::class)) {
112-
$item = new Literal($generator->formatStatement($item));
113-
} else {
114-
/** @psalm-suppress DeprecatedClass */
115-
$item = new PhpLiteral($generator->formatStatement($item));
116-
}
110+
$item = new Literal($generator->formatStatement($item));
117111
}
118112
}
119113
}

0 commit comments

Comments
 (0)