From 5ce8c40214e28938add1e9578d04a7ec300196a5 Mon Sep 17 00:00:00 2001 From: wakebit <32976842+wakebit@users.noreply.github.com> Date: Mon, 24 Apr 2023 09:58:30 +0500 Subject: [PATCH 1/2] php 8.2 support --- .github/workflows/tests.yml | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 08bf8b8..dbfdbcc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - php: [7.2, 7.3, 7.4, 8.0, 8.1] + php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2] name: PHP ${{ matrix.php }} diff --git a/composer.json b/composer.json index 22e07d5..affb982 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } }, "require": { - "php": "^7.2|^7.3|^7.4|^8.0|^8.1", + "php": "^7.2|^7.3|^7.4|^8.0|^8.1|^8.2", "cycle/annotated": "^2.0", "cycle/migrations": "^1.0", "cycle/orm": "^1.1", From 7ae320458cfa7fcdb7ac0f10c217f4c019a0003d Mon Sep 17 00:00:00 2001 From: wakebit <32976842+wakebit@users.noreply.github.com> Date: Mon, 24 Apr 2023 10:09:59 +0500 Subject: [PATCH 2/2] fix failing tests I don't why it creates additional changes like 'customers_alter_id' in github actions only. So, migration name looks like 'default_customers_alter_id_create_tags' --- tests/src/Console/Command/Schema/MigrateCommandTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/Console/Command/Schema/MigrateCommandTest.php b/tests/src/Console/Command/Schema/MigrateCommandTest.php index d897f34..d3d20af 100644 --- a/tests/src/Console/Command/Schema/MigrateCommandTest.php +++ b/tests/src/Console/Command/Schema/MigrateCommandTest.php @@ -169,7 +169,7 @@ private function assertHasChangesInMigrationFiles(): void $this->assertContains($migrationFile, $files); } - $this->assertStringContainsString('default_create_tags', $files[count($files) - 1]); + $this->assertStringContainsString('create_tags', $files[count($files) - 1]); } private function createTestEntity(): void