diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index f3af4d0..6ae2aa8 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -20,13 +20,13 @@ jobs: uses: shivammathur/setup-php@v2 with: coverage: none - php-version: 8.2 + php-version: 8.4 - name: Cache Composer packages id: composer-cache uses: actions/cache@v3 with: - php_version: 8.2 + php_version: 8.4 path: vendor key: ${{ runner.os }} restore-keys: | diff --git a/composer.json b/composer.json index c4417d5..ee5cdd6 100755 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": ">=8.2", + "php": ">=8.4", "micro/kernel-app": "^1.6", "micro/autowire": "^1.6", "micro/plugin-configuration-helper": "^1.6", @@ -23,12 +23,12 @@ "micro/plugin-twig-webpack-encore": "^1.6" }, "require-dev": { - "ergebnis/composer-normalize": "^2.29", - "phpunit/phpunit": "^10.1", - "vimeo/psalm": "^5.15", - "phpstan/phpstan": "^1.10", - "friendsofphp/php-cs-fixer": "^3.13", - "phpunit/php-code-coverage": "^10.1" + "ergebnis/composer-normalize": "^2", + "phpunit/phpunit": "^12", + "vimeo/psalm": "^6", + "phpstan/phpstan": "^2", + "friendsofphp/php-cs-fixer": "^3", + "phpunit/php-code-coverage": "^12" }, "autoload": { "psr-4": { diff --git a/psalm.xml b/psalm.xml index d95a6c8..321b8f7 100644 --- a/psalm.xml +++ b/psalm.xml @@ -14,14 +14,15 @@ - + - + - - + + + - + diff --git a/src/Blog/BlogPlugin.php b/src/Blog/BlogPlugin.php index 6717478..da28744 100644 --- a/src/Blog/BlogPlugin.php +++ b/src/Blog/BlogPlugin.php @@ -14,6 +14,7 @@ class BlogPlugin implements RouteProviderPluginInterface, TwigTemplatePluginInte { use TwigTemplatePluginTrait; + #[\Override] public function provideRoutes(HttpFacadeInterface $httpFacade): iterable { yield $httpFacade diff --git a/src/Kernel.php b/src/Kernel.php index 36b2254..6159a8a 100755 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -8,12 +8,12 @@ $basedir = realpath(__DIR__.'/../'); if (!$basedir) { - throw new \RuntimeException('Base path can not be resolved.'); + throw new RuntimeException('Base path can not be resolved.'); } require_once $basedir.'/vendor/autoload.php'; -return function () use ($basedir): \Micro\Framework\Kernel\KernelInterface { +return function () use ($basedir): Micro\Framework\Kernel\KernelInterface { $applicationConfiguration = new class($basedir) extends DefaultApplicationConfiguration { private Dotenv $dotenv; diff --git a/tests/tools/php-cs-fixer/composer.json b/tests/tools/php-cs-fixer/composer.json index 45500a7..ce6eb43 100644 --- a/tests/tools/php-cs-fixer/composer.json +++ b/tests/tools/php-cs-fixer/composer.json @@ -1,5 +1,5 @@ { "require-dev": { - "friendsofphp/php-cs-fixer": "^3.16" + "friendsofphp/php-cs-fixer": "^3" } } diff --git a/tests/tools/phpstan/composer.json b/tests/tools/phpstan/composer.json index 2216211..7e2c7b9 100644 --- a/tests/tools/phpstan/composer.json +++ b/tests/tools/phpstan/composer.json @@ -1,5 +1,5 @@ { "require-dev": { - "phpstan/phpstan": "^1.10" + "phpstan/phpstan": "^2" } } diff --git a/tests/tools/psalm/composer.json b/tests/tools/psalm/composer.json index 9c35def..9356ebb 100644 --- a/tests/tools/psalm/composer.json +++ b/tests/tools/psalm/composer.json @@ -1,5 +1,5 @@ { "require-dev": { - "vimeo/psalm": "^5.11" + "vimeo/psalm": "^6" } }