Skip to content

Commit

Permalink
Add PHP 8.4 in CI, update psalm baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Feb 6, 2025
1 parent e2262be commit eb4d8d7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]'

...
2 changes: 1 addition & 1 deletion .github/workflows/ci-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]'

...
2 changes: 1 addition & 1 deletion .github/workflows/ci-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]'

...
19 changes: 4 additions & 15 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0">
<files psalm-version="6.4.0@04f312ac6ea48ba1c3e5db4d815bf6d74641c0ee">
<file src="src/Atomizer/Renderer.php">
<ArgumentTypeCoercion>
<code><![CDATA[$comparator]]></code>
Expand Down Expand Up @@ -65,9 +65,6 @@
<ArgumentTypeCoercion>
<code><![CDATA[$table]]></code>
</ArgumentTypeCoercion>
<MixedInferredReturnType>
<code><![CDATA[AbstractTable]]></code>
</MixedInferredReturnType>
<MixedPropertyTypeCoercion>
<code><![CDATA[$this->schemas]]></code>
</MixedPropertyTypeCoercion>
Expand All @@ -80,12 +77,6 @@
</UndefinedInterfaceMethod>
</file>
<file src="src/Config/MigrationConfig.php">
<MixedInferredReturnType>
<code><![CDATA[bool]]></code>
<code><![CDATA[string]]></code>
<code><![CDATA[string]]></code>
<code><![CDATA[string]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$this->config['directory'] ?? '']]></code>
<code><![CDATA[$this->config['directory'] ?? '']]></code>
Expand All @@ -98,13 +89,14 @@
</MixedReturnStatement>
</file>
<file src="src/FileRepository.php">
<ArgumentTypeCoercion>
<code><![CDATA[$directory]]></code>
</ArgumentTypeCoercion>
<MixedArgument>
<code><![CDATA[$directory]]></code>
<code><![CDATA[$filename]]></code>
</MixedArgument>
<MixedAssignment>
<code><![CDATA[$directory]]></code>
<code><![CDATA[$filename]]></code>
</MixedAssignment>
<MoreSpecificReturnType>
<code><![CDATA[\Generator<int, TFileArray>]]></code>
Expand All @@ -124,9 +116,6 @@
<LessSpecificReturnStatement>
<code><![CDATA[$this->capsule->getDatabase()]]></code>
</LessSpecificReturnStatement>
<MixedInferredReturnType>
<code><![CDATA[?string]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[static::DATABASE]]></code>
</MixedReturnStatement>
Expand Down
3 changes: 3 additions & 0 deletions src/FileRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,16 @@ private function getFilesIterator(): \Generator
$this->config->getVendorDirectories(),
) as $directory
) {
$directory === '' and $directory = '.';
yield from $this->getFiles($directory);
}
}

/**
* Internal method to fetch all migration filenames.
*
* @param non-empty-string $directory
*
* @return \Generator<int, TFileArray>
*/
private function getFiles(string $directory): \Generator
Expand Down

0 comments on commit eb4d8d7

Please sign in to comment.