From eb4d8d756f3f184cfed12abe330dc4128d69f35c Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Thu, 6 Feb 2025 15:50:53 +0400 Subject: [PATCH] Add PHP 8.4 in CI, update psalm baseline --- .github/workflows/ci-mssql.yml | 2 +- .github/workflows/ci-mysql.yml | 2 +- .github/workflows/ci-pgsql.yml | 2 +- psalm-baseline.xml | 19 ++++--------------- src/FileRepository.php | 3 +++ 5 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci-mssql.yml b/.github/workflows/ci-mssql.yml index 43d00c0..2b34c22 100644 --- a/.github/workflows/ci-mssql.yml +++ b/.github/workflows/ci-mssql.yml @@ -14,6 +14,6 @@ jobs: phpunit: uses: cycle/gh-actions/.github/workflows/db-mssql.yml@master with: - php: '["8.1","8.2","8.3"]' + php: '["8.1","8.2","8.3","8.4"]' ... diff --git a/.github/workflows/ci-mysql.yml b/.github/workflows/ci-mysql.yml index f74f61c..e788f59 100644 --- a/.github/workflows/ci-mysql.yml +++ b/.github/workflows/ci-mysql.yml @@ -14,6 +14,6 @@ jobs: phpunit: uses: cycle/gh-actions/.github/workflows/db-mysql.yml@master with: - php: '["8.1","8.2","8.3"]' + php: '["8.1","8.2","8.3","8.4"]' ... diff --git a/.github/workflows/ci-pgsql.yml b/.github/workflows/ci-pgsql.yml index 40f186e..83ffad3 100644 --- a/.github/workflows/ci-pgsql.yml +++ b/.github/workflows/ci-pgsql.yml @@ -14,6 +14,6 @@ jobs: phpunit: uses: cycle/gh-actions/.github/workflows/db-pgsql.yml@master with: - php: '["8.1","8.2","8.3"]' + php: '["8.1","8.2","8.3","8.4"]' ... diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 9f77c52..8def121 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + @@ -65,9 +65,6 @@ - - - schemas]]> @@ -80,12 +77,6 @@ - - - - - - config['directory'] ?? '']]> config['directory'] ?? '']]> @@ -98,13 +89,14 @@ + + + - - ]]> @@ -124,9 +116,6 @@ capsule->getDatabase()]]> - - - diff --git a/src/FileRepository.php b/src/FileRepository.php index 93b1af7..20cde99 100644 --- a/src/FileRepository.php +++ b/src/FileRepository.php @@ -123,6 +123,7 @@ private function getFilesIterator(): \Generator $this->config->getVendorDirectories(), ) as $directory ) { + $directory === '' and $directory = '.'; yield from $this->getFiles($directory); } } @@ -130,6 +131,8 @@ private function getFilesIterator(): \Generator /** * Internal method to fetch all migration filenames. * + * @param non-empty-string $directory + * * @return \Generator */ private function getFiles(string $directory): \Generator