Skip to content

Commit 540708b

Browse files
authored
Merge pull request #454 from dotkernel/issue-450
Isue #450: Add PHP 8.4 & 8.5 support
2 parents 45b2311 + 984261f commit 540708b

File tree

11 files changed

+22
-18
lines changed

11 files changed

+22
-18
lines changed

.github/workflows/codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
php:
1818
- "8.2"
1919
- "8.3"
20+
- "8.4"
21+
- "8.5"
2022

2123
steps:
2224
- name: Checkout

.github/workflows/qodana_code_quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
checks: write
1717
strategy:
1818
matrix:
19-
php-versions: [ '8.2', '8.3' ]
19+
php-versions: [ '8.2', '8.3', '8.4', '8.5' ]
2020
steps:
2121
- uses: actions/checkout@v4
2222
with:

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
php:
1818
- "8.2"
1919
- "8.3"
20+
- "8.4"
21+
- "8.5"
2022

2123
steps:
2224
- name: Checkout

.github/workflows/validate-database-schema.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
php:
2525
- "8.2"
2626
- "8.3"
27+
- "8.4"
28+
- "8.5"
2729

2830
steps:
2931
- name: Checkout

bin/doctrine

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,24 @@
44
declare(strict_types=1);
55

66
use Core\App\Event\TablePrefixEventListener;
7+
use Doctrine\ORM\EntityManager;
78
use Doctrine\ORM\Events;
89
use Doctrine\ORM\Tools\Console\ConsoleRunner;
910
use Doctrine\ORM\Tools\Console\EntityManagerProvider\SingleManagerProvider;
1011
use Dot\DataFixtures\Command\ExecuteFixturesCommand;
1112
use Dot\DataFixtures\Command\ListFixturesCommand;
12-
use Doctrine\ORM\EntityManager;
1313

1414
require_once 'vendor/autoload.php';
1515

16-
$container = require 'config/container.php' ;
16+
$container = require 'config/container.php';
1717

1818
$entityManager = $container->get(EntityManager::class);
1919
$entityManager->getEventManager()
2020
->addEventListener(Events::loadClassMetadata, $container->get(TablePrefixEventListener::class));
2121

2222
$commands = [
23-
$container->get(ExecuteFixturesCommand::class),
24-
$container->get(ListFixturesCommand::class),
23+
$container->get(ExecuteFixturesCommand::class),
24+
$container->get(ListFixturesCommand::class),
2525
];
2626

27-
ConsoleRunner::run(
28-
new SingleManagerProvider($entityManager),
29-
$commands
30-
);
27+
ConsoleRunner::run(new SingleManagerProvider($entityManager), $commands);

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
}
5050
},
5151
"require": {
52-
"php": "~8.2.0 || ~8.3.0",
52+
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
5353
"ext-gd": "*",
5454
"ext-json": "*",
5555
"dotkernel/dot-cache": "^4.3",
@@ -77,7 +77,7 @@
7777
"mezzio/mezzio-problem-details": "^1.15.0",
7878
"ramsey/uuid": "^4.5.0",
7979
"ramsey/uuid-doctrine": "^2.1.0",
80-
"roave/psr-container-doctrine": "^5.2.2",
80+
"roave/psr-container-doctrine": "^5.2.2 || ^6.0.0",
8181
"symfony/filesystem": "^7.2.0",
8282
"zircote/swagger-php": "^5.0.7"
8383
},

config/autoload/cli.global.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
'version' => '1.0.0',
1313
'name' => 'Dotkernel CLI',
1414
'commands' => [
15-
RouteListCommand::getDefaultName() => RouteListCommand::class,
16-
AdminCreateCommand::getDefaultName() => AdminCreateCommand::class,
17-
TokenGenerateCommand::getDefaultName() => TokenGenerateCommand::class,
15+
RouteListCommand::$defaultName => RouteListCommand::class,
16+
AdminCreateCommand::$defaultName => AdminCreateCommand::class,
17+
TokenGenerateCommand::$defaultName => TokenGenerateCommand::class,
1818
],
1919
],
2020
FileLockerInterface::class => [

src/Admin/src/Command/AdminCreateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
class AdminCreateCommand extends Command
3737
{
3838
/** @var string $defaultName */
39-
protected static $defaultName = 'admin:create';
39+
public static $defaultName = 'admin:create';
4040

4141
#[Inject(
4242
AdminServiceInterface::class,

src/App/src/Command/TokenGenerateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class TokenGenerateCommand extends Command
2626
{
2727
/** @var string $defaultName */
28-
protected static $defaultName = 'token:generate';
28+
public static $defaultName = 'token:generate';
2929
private string $typeErrorReporting = 'error-reporting';
3030

3131
#[Inject(

src/Core/src/App/src/Command/RouteListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
class RouteListCommand extends Command
3232
{
3333
/** @var string $defaultName */
34-
protected static $defaultName = 'route:list';
34+
public static $defaultName = 'route:list';
3535

3636
#[Inject(
3737
Application::class,

0 commit comments

Comments
 (0)