Skip to content

Commit a8d67d6

Browse files
committed
Upgrade skeleton to PHP 8.4
1 parent ba2745e commit a8d67d6

File tree

10 files changed

+182
-193
lines changed

10 files changed

+182
-193
lines changed

.github/workflows/codesniffer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
name: "Codesniffer"
1616
uses: contributte/.github/.github/workflows/codesniffer.yml@master
1717
with:
18-
php: "8.2"
18+
php: "8.4"

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
name: "Nette Tester"
1616
uses: contributte/.github/.github/workflows/nette-tester-coverage-v2.yml@master
1717
with:
18-
php: "8.2"
18+
php: "8.4"
1919
make: "init coverage"

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
name: "Phpstan"
1616
uses: contributte/.github/.github/workflows/phpstan.yml@master
1717
with:
18-
php: "8.2"
18+
php: "8.4"
1919
make: "init phpstan"

.github/workflows/tests.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,9 @@ on:
1111
- cron: "0 8 * * 1"
1212

1313
jobs:
14-
test83:
14+
test84:
1515
name: "Nette Tester"
1616
uses: contributte/.github/.github/workflows/nette-tester.yml@master
1717
with:
18-
php: "8.3"
19-
make: "init tests"
20-
21-
test82:
22-
name: "Nette Tester"
23-
uses: contributte/.github/.github/workflows/nette-tester.yml@master
24-
with:
25-
php: "8.2"
18+
php: "8.4"
2619
make: "init tests"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Main goal is to provide terminal-based console-kit project for Nette developers.
3030

3131
## Installation
3232

33-
You will need `PHP 8.2+` and [Composer](https://getcomposer.org/).
33+
You will need `PHP 8.4+` and [Composer](https://getcomposer.org/).
3434

3535
Create project using composer.
3636

app/Bootstrap.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App;
44

55
use Contributte\Bootstrap\ExtraConfigurator;
6+
use Nette\Bootstrap\Configurator;
67
use Nette\DI\Compiler;
78
use Symfony\Component\Console\Application as SymfonyApplication;
89
use Tracy\Debugger;
@@ -15,9 +16,10 @@ public static function boot(): ExtraConfigurator
1516
$configurator = new ExtraConfigurator();
1617
$configurator->setTempDirectory(__DIR__ . '/../var/tmp');
1718

18-
$configurator->onCompile[] = function (ExtraConfigurator $configurator, Compiler $compiler): void {
19-
// Add env variables to config structure
20-
$compiler->addConfig(['parameters' => $configurator->getEnvironmentParameters()]);
19+
$configurator->onCompile[] = function (Configurator $configurator, Compiler $compiler): void {
20+
if ($configurator instanceof ExtraConfigurator) {
21+
$compiler->addConfig(['parameters' => $configurator->getEnvironmentParameters()]);
22+
}
2123
};
2224

2325
// According to NETTE_DEBUG env

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
"license": "MIT",
1414
"type": "project",
1515
"require": {
16-
"php": ">=8.2",
16+
"php": ">=8.4",
1717

18-
"contributte/bootstrap": "^0.6.0",
18+
"contributte/bootstrap": "^0.7.0",
1919
"contributte/di": "^0.6.0",
20-
"contributte/utils": "^0.6.0",
20+
"contributte/utils": "^0.7.0",
2121
"contributte/latte": "^0.7.0",
2222
"contributte/tracy": "^0.7.0",
2323
"contributte/console": "^0.11.0"

0 commit comments

Comments
 (0)