Skip to content

Commit d9c7fa9

Browse files
authored
Merge pull request #749 from TomHAnderson/feature/php-8.3
PHP 8.3 support
2 parents f334b92 + f6a0ab1 commit d9c7fa9

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
name: "Coding Standards"
1414
uses: "doctrine/.github/.github/workflows/[email protected]"
1515
with:
16-
php-version: '8.2'
16+
php-version: '8.3'

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- "8.0"
2121
- "8.1"
2222
- "8.2"
23+
- "8.3"
2324
dbal-version:
2425
- "2.13.0"
2526
- "3.3.0"

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
name: "Static Analysis"
1414
uses: "doctrine/.github/.github/workflows/[email protected]"
1515
with:
16-
php-version: '8.2'
16+
php-version: '8.3'

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
}
5050
},
5151
"require": {
52-
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
52+
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
5353
"ext-json": "*",
5454
"doctrine/dbal": "^2.13.7 || ^3.3.2",
5555
"doctrine/doctrine-laminas-hydrator": "^3.0.0",

tests/Service/MigrationsCommandFactoryTest.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,24 +96,26 @@ public function testDefineDependencyFactoryServicesFromConfig(): void
9696
);
9797
}
9898

99-
$factory = new MigrationsCommandFactory('diff');
100-
$config = [
99+
$entityManager = self::createMock(EntityManagerInterface::class);
100+
$serviceLocator = self::createMock(ServiceManager::class);
101+
102+
$factory = new MigrationsCommandFactory('diff');
103+
$config = [
101104
'doctrine' => [
102105
'migrations_configuration' => [
103106
'orm_default' => [
104-
'dependency_factory_services' => ['myId' => 'myService'],
107+
'dependency_factory_services' => ['test' => 'locator.service'],
105108
],
106109
],
107110
],
108111
];
109-
$entityManager = self::createMock(EntityManagerInterface::class);
110-
$serviceLocator = self::createMock(ServiceManager::class);
112+
111113
$serviceLocator->expects(self::exactly(3))
112114
->method('get')
113115
->willReturnMap([
114116
['config', $config],
115117
['doctrine.entitymanager.orm_default', $entityManager],
116-
['myService', 'test'],
118+
['locator.service', new stdClass()],
117119
]);
118120

119121
$factory($serviceLocator, DiffCommand::class);

0 commit comments

Comments
 (0)