Skip to content

Commit

Permalink
Allowed nette/utils v4 and symfony components V7
Browse files Browse the repository at this point in the history
  • Loading branch information
tg666 committed Aug 6, 2024
1 parent 46149c6 commit ae56588
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"ext-json": "*",
"latte/latte": "^2.5 || ^3.0",
"nette/di": "^3.0.10",
"nette/utils": "^3.2.5",
"symfony/asset": "^5.4 || ^6.0",
"symfony/cache": "^5.4 || ^6.0"
"nette/utils": "^3.2.5 || ^4.0",
"symfony/asset": "^5.4 || ^6.0 || ^7.0",
"symfony/cache": "^5.4 || ^6.0 || ^7.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.13",
Expand All @@ -29,7 +29,7 @@
"phpstan/phpstan-nette": "^1.1",
"roave/security-advisories": "dev-latest",
"symfony/console": "^5.4",
"symfony/event-dispatcher": "^5.4 || ^6.0"
"symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0"
},
"conflict": {
"nette/schema": "<1.2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/Bridge/Nette/DI/WebpackEncoreBundleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public function getConfigSchema(): Schema
Expect::anyOf(Expect::string(), TRUE),
'string'
),
])->assert(static fn (object $config): bool => !(!isset($config->output_path) && empty($config->builds)), 'No build is defined.')
->castTo(WebpackEncoreConfig::class);
])->castTo(WebpackEncoreConfig::class)
->assert(static fn (object $config): bool => !(!isset($config->output_path) && empty($config->builds)), 'No build is defined.');
}

/**
Expand Down
4 changes: 4 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
Environment::bypassFinals();
date_default_timezone_set('Europe/Prague');

if (PHP_VERSION_ID < 80000) {
error_reporting(~E_USER_DEPRECATED);
}

if (PHP_VERSION_ID >= 80200) {
error_reporting(~E_DEPRECATED);
}
Expand Down

0 comments on commit ae56588

Please sign in to comment.