Skip to content

Commit 0dccef2

Browse files
committed
Added support for PHP 8.3
1 parent 0520764 commit 0dccef2

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.github/workflows/unit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
composer-args: "--ignore-platform-req=php"
2424
- version: "8.2"
2525
composer-args: "--ignore-platform-req=php"
26+
- version: "8.3"
27+
composer-args: "--ignore-platform-req=php"
2628
prefer-lowest: ["", "--prefer-lowest"]
2729

2830
name: Unit Tests - PHP ${{ matrix.php.version }} ${{ matrix.prefer-lowest }}

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424
}
2525
},
2626
"require": {
27-
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0",
27+
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
2828
"doctrine/orm": "^2.11",
2929
"doctrine/dbal": "^3.1.2"
3030
},
3131
"require-dev": {
32-
"phpunit/phpunit": "^9.5",
32+
"phpunit/phpunit": "^9.5 || ^10.0",
3333
"thomasweinert/phpunit-xpath-assertions": "^3.0",
3434
"phpspec/prophecy-phpunit": "^2.0",
3535
"vimeo/psalm": "^4.23",
3636
"doctrine/cache": "^2.1",
3737
"phpspec/prophecy": "^1.14",
3838
"laminas/laminas-coding-standard": "^2.3",
39-
"doctrine/annotations": "^1.13"
39+
"doctrine/annotations": "^1.13 || ^2.0"
4040
},
4141
"replace": {
4242
"toilal/doctrine-migrations-liquibase": "self.version"

src/LiquibaseSchemaTool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public function changeLog($output = null, $metadata = null)
8787
{
8888
$output = $this->sanitizeOutputParameter($output);
8989
$metadata = $this->sanitizeMetadatas($metadata);
90+
$schema = $this->getSchemaFromMetadata($metadata);
9091

91-
$schema = $this->getSchemaFromMetadata($metadata);
9292
$liquibaseVisitor = new LiquibaseSchemaVisitor($output);
9393
$output->started($this->em);
9494
$schema->visit($liquibaseVisitor);

tests/units/src/LiquibaseSchemaToolTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Prophecy\Argument;
2525
use Prophecy\PhpUnit\ProphecyTrait;
2626
use Prophecy\Prophecy\ObjectProphecy;
27+
use Doctrine\ORM\Tools\ToolEvents;
2728

2829
/**
2930
* Generated by PHPUnit_SkeletonGenerator on 2021-09-14 at 09:59:16.
@@ -51,6 +52,8 @@ protected function setUp(): void
5152
{
5253
$this->quoteStrategy = $this->prophesize(QuoteStrategy::class);
5354
$this->eventManager = $this->prophesize(EventManager::class);
55+
$this->eventManager->hasListeners(ToolEvents::postGenerateSchemaTable)->willReturn(false);
56+
$this->eventManager->hasListeners(ToolEvents::postGenerateSchema)->willReturn(false);
5457

5558
$this->emConfig = $this->prophesize(EMConfig::class);
5659
$this->emConfig->getSchemaIgnoreClasses()->willReturn([]);

0 commit comments

Comments
 (0)