Skip to content

Commit

Permalink
update stan
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSimal committed Jan 5, 2025
1 parent d9b6140 commit 0e6d19d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpstan" version="2.0.1" installed="2.0.1" location="./tools/phpstan" copy="false"/>
<phar name="phpstan" version="2.1.0" installed="2.1.0" location="./tools/phpstan" copy="false"/>
<phar name="psalm" version="5.26.1" installed="5.26.1" location="./tools/psalm" copy="false"/>
</phive>
24 changes: 24 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ parameters:
count: 1
path: src/Migration/Environment.php

-
message: '#^Parameter \#1 \$message of method Cake\\Console\\ConsoleIo\:\:verbose\(\) expects list\<string\>\|string, array\<non\-falsy\-string\> given\.$#'
identifier: argument.type
count: 1
path: src/Migration/Manager.php

-
message: '#^Parameter \#1 \.\.\.\$arg1 of function max expects non\-empty\-array, array given\.$#'
identifier: argument.type
Expand All @@ -138,6 +144,24 @@ parameters:
count: 1
path: src/Shim/OutputAdapter.php

-
message: '#^Parameter \#1 \$message of method Cake\\Console\\ConsoleIo\:\:out\(\) expects list\<string\>\|string, array\|string given\.$#'
identifier: argument.type
count: 2
path: src/Shim/OutputAdapter.php

-
message: '#^Parameter \#2 \$tables of method Cake\\TestSuite\\ConnectionHelper\:\:dropTables\(\) expects list\<string\>\|null, non\-empty\-array\<string\> given\.$#'
identifier: argument.type
count: 1
path: src/TestSuite/Migrator.php

-
message: '#^Parameter \#2 \$tables of method Cake\\TestSuite\\ConnectionHelper\:\:truncateTables\(\) expects list\<string\>\|null, non\-empty\-array\<string\> given\.$#'
identifier: argument.type
count: 2
path: src/TestSuite/Migrator.php

-
message: '#^Offset 0 on non\-empty\-list\<string\> in isset\(\) always exists and is not nullable\.$#'
identifier: isset.offset
Expand Down
17 changes: 17 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@
</file>
<file src="src/Migration/Manager.php">
<ArgumentTypeCoercion>
<code><![CDATA[array_map(
function ($phpFile) {
return " <info>{$phpFile}</info>";
},
$phpFiles
)]]></code>
<code><![CDATA[array_merge($versions, array_keys($migrations))]]></code>
</ArgumentTypeCoercion>
<RedundantPropertyInitializationCheck>
Expand Down Expand Up @@ -198,13 +204,24 @@
</PossiblyNullReference>
</file>
<file src="src/Shim/OutputAdapter.php">
<ArgumentTypeCoercion>
<code><![CDATA[$messages]]></code>
<code><![CDATA[$messages]]></code>
</ArgumentTypeCoercion>
<LessSpecificReturnStatement>
<code><![CDATA[$this->io->level()]]></code>
</LessSpecificReturnStatement>
<MoreSpecificReturnType>
<code><![CDATA[self::VERBOSITY_*]]></code>
</MoreSpecificReturnType>
</file>
<file src="src/TestSuite/Migrator.php">
<ArgumentTypeCoercion>
<code><![CDATA[$dropTables]]></code>
<code><![CDATA[$phinxTables]]></code>
<code><![CDATA[$tables]]></code>
</ArgumentTypeCoercion>
</file>
<file src="src/Util/ColumnParser.php">
<ArgumentTypeCoercion>
<code><![CDATA[$this->regexpParseColumn]]></code>
Expand Down

0 comments on commit 0e6d19d

Please sign in to comment.