Skip to content

Commit

Permalink
Added support for PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiang committed Jan 24, 2024
1 parent 0520764 commit 0dccef2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
composer-args: "--ignore-platform-req=php"
- version: "8.2"
composer-args: "--ignore-platform-req=php"
- version: "8.3"
composer-args: "--ignore-platform-req=php"
prefer-lowest: ["", "--prefer-lowest"]

name: Unit Tests - PHP ${{ matrix.php.version }} ${{ matrix.prefer-lowest }}
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
}
},
"require": {
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0",
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"doctrine/orm": "^2.11",
"doctrine/dbal": "^3.1.2"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^9.5 || ^10.0",
"thomasweinert/phpunit-xpath-assertions": "^3.0",
"phpspec/prophecy-phpunit": "^2.0",
"vimeo/psalm": "^4.23",
"doctrine/cache": "^2.1",
"phpspec/prophecy": "^1.14",
"laminas/laminas-coding-standard": "^2.3",
"doctrine/annotations": "^1.13"
"doctrine/annotations": "^1.13 || ^2.0"
},
"replace": {
"toilal/doctrine-migrations-liquibase": "self.version"
Expand Down
2 changes: 1 addition & 1 deletion src/LiquibaseSchemaTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public function changeLog($output = null, $metadata = null)
{
$output = $this->sanitizeOutputParameter($output);
$metadata = $this->sanitizeMetadatas($metadata);
$schema = $this->getSchemaFromMetadata($metadata);

$schema = $this->getSchemaFromMetadata($metadata);
$liquibaseVisitor = new LiquibaseSchemaVisitor($output);
$output->started($this->em);
$schema->visit($liquibaseVisitor);
Expand Down
3 changes: 3 additions & 0 deletions tests/units/src/LiquibaseSchemaToolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Prophecy\Argument;
use Prophecy\PhpUnit\ProphecyTrait;
use Prophecy\Prophecy\ObjectProphecy;
use Doctrine\ORM\Tools\ToolEvents;

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

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

0 comments on commit 0dccef2

Please sign in to comment.