Skip to content

Commit

Permalink
Allow php-di 6 and fix version constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
zbateson committed Apr 29, 2024
1 parent fdcea66 commit 214a090
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
},
"require": {
"php": ">=8.0",
"guzzlehttp/psr7": "^2.0",
"guzzlehttp/psr7": "^2.5",
"zbateson/mb-wrapper": "^2.0",
"zbateson/stream-decorators": "^2.1",
"php-di/php-di": "^7.0",
"php-di/php-di": "^6.0|^7.0",
"psr/log": "^1|^2|^3"
},
"require-dev": {
"phpunit/phpunit": "<10",
"phpunit/phpunit": "^9.6|^10",
"friendsofphp/php-cs-fixer": "*",
"phpstan/phpstan": "*",
"monolog/monolog": "^2|^3"
Expand Down
2 changes: 0 additions & 2 deletions src/MailMimeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ class MailMimeParser
private static function getGlobalContainerBuilder() : ContainerBuilder
{
$builder = new ContainerBuilder();
$builder->useAttributes(true);
foreach (self::$globalDefinitions as $def) {
$builder->addDefinitions($def);
}
Expand Down Expand Up @@ -174,7 +173,6 @@ public function __construct(
$builder = self::getGlobalContainerBuilder();
} else {
$builder = new ContainerBuilder();
$builder->useAttributes(true);
$builder->addDefinitions(self::DEFAULT_DEFINITIONS_FILE);
}
if ($phpDiContainerConfig !== null) {
Expand Down

0 comments on commit 214a090

Please sign in to comment.