Skip to content

Commit

Permalink
chore(deps): bump min req php to v8.1 (#49)
Browse files Browse the repository at this point in the history
Run CI also on 8.2
  • Loading branch information
simPod authored Apr 3, 2023
1 parent 08322bf commit 94c9bd6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
strategy:
matrix:
php-version:
- "8.0"
- "8.1"
- "8.2"
dependencies:
- "highest"
include:
- dependencies: "lowest"
php-version: "8.0"
php-version: "8.1"

steps:
- name: "Checkout"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.0"
- "8.1"

steps:
- name: "Checkout"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.0"
- "8.1"

steps:
- name: "Checkout code"
Expand All @@ -40,7 +40,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.0"
- "8.1"

steps:
- name: Checkout code
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"keywords": ["tracy", "bluescreen", "error", "debug", "debugger", "exceptions", "bundle"],
"license": "MIT",
"require": {
"php": "^8.0",
"php": "^8.1",
"symfony/config": "^6.0",
"symfony/console": "^6.0",
"symfony/dependency-injection": "^6.0",
Expand All @@ -15,7 +15,7 @@
"require-dev": {
"cdn77/coding-standard": "^6.1",
"matthiasnoback/symfony-dependency-injection-test": "^4.2",
"mikey179/vfsstream": "^1.6.8",
"mikey179/vfsstream": "^1.6.11",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
Expand Down
12 changes: 9 additions & 3 deletions tests/DependencyInjection/TracyBlueScreenExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,19 @@ public static function loadExtensionsToContainer(
foreach ($container->getExtensions() as $extensionAlias => $extension) {
$configurations[$extensionAlias] = [];
if (array_key_exists($extensionAlias, $minimalConfiguration)) {
$container->loadFromExtension($extensionAlias, $minimalConfiguration[$extensionAlias]);
/** @var array<string, mixed>|null $values */
$values = $minimalConfiguration[$extensionAlias];
$container->loadFromExtension($extensionAlias, $values);
$configurations[$extensionAlias][] = $minimalConfiguration[$extensionAlias];
}

if (! array_key_exists($extensionAlias, $configuration)) {
continue;
}

$container->loadFromExtension($extensionAlias, $configuration[$extensionAlias]);
/** @var array<string, mixed>|null $values */
$values = $configuration[$extensionAlias];
$container->loadFromExtension($extensionAlias, $values);
$configurations[$extensionAlias][] = $configuration[$extensionAlias];
}

Expand All @@ -53,7 +57,9 @@ public static function loadExtensionsToContainer(
}

foreach ($container->getExtensions() as $extensionAlias => $extension) {
$extension->load($configurations[$extensionAlias], $container);
/** @var array<array<mixed>> $values */
$values = $configurations[$extensionAlias];
$extension->load($values, $container);
}
}

Expand Down

0 comments on commit 94c9bd6

Please sign in to comment.