Skip to content

Commit

Permalink
Merge pull request #678 from cakephp/import-environment
Browse files Browse the repository at this point in the history
Import environment
  • Loading branch information
markstory authored Jan 15, 2024
2 parents 1dbfc23 + fdfe8f4 commit 46a5ade
Show file tree
Hide file tree
Showing 4 changed files with 759 additions and 0 deletions.
10 changes: 10 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ parameters:
count: 2
path: src/Db/Adapter/SqlserverAdapter.php

-
message: "#^Parameter \\#1 \\$adapter of method Phinx\\\\Migration\\\\MigrationInterface\\:\\:setAdapter\\(\\) expects Phinx\\\\Db\\\\Adapter\\\\AdapterInterface, Migrations\\\\Db\\\\Adapter\\\\AdapterInterface given\\.$#"
count: 2
path: src/Migration/Environment.php

-
message: "#^Parameter \\#1 \\$adapter of method Phinx\\\\Seed\\\\SeedInterface\\:\\:setAdapter\\(\\) expects Phinx\\\\Db\\\\Adapter\\\\AdapterInterface, Migrations\\\\Db\\\\Adapter\\\\AdapterInterface given\\.$#"
count: 1
path: src/Migration/Environment.php

-
message: "#^Possibly invalid array key type Cake\\\\Database\\\\Schema\\\\TableSchemaInterface\\|string\\.$#"
count: 2
Expand Down
10 changes: 10 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
<code>$newColumns</code>
</MissingParamType>
</file>
<file src="src/Migration/Environment.php">
<InvalidArgument>
<code><![CDATA[$this->getAdapter()]]></code>
<code><![CDATA[$this->getAdapter()]]></code>
<code><![CDATA[$this->getAdapter()]]></code>
</InvalidArgument>
<RedundantPropertyInitializationCheck>
<code><![CDATA[isset($this->adapter)]]></code>
</RedundantPropertyInitializationCheck>
</file>
<file src="src/Migration/Manager.php">
<ArgumentTypeCoercion>
<code>array_merge($versions, array_keys($migrations))</code>
Expand Down
Loading

0 comments on commit 46a5ade

Please sign in to comment.