Skip to content

Commit

Permalink
Merge pull request #672 from cakephp/import-postgres
Browse files Browse the repository at this point in the history
Import postgres adapter
  • Loading branch information
markstory authored Jan 3, 2024
2 parents fb8e05f + 8ff419f commit 97e41a7
Show file tree
Hide file tree
Showing 5 changed files with 4,546 additions and 1 deletion.
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ parameters:
count: 1
path: src/Db/Adapter/PdoAdapter.php

-
message: "#^Offset 'id' on array\\<string, mixed\\> in isset\\(\\) always exists and is not nullable\\.$#"
count: 2
path: src/Db/Adapter/PostgresAdapter.php

-
message: "#^Offset 'id' on array\\<string, mixed\\> in isset\\(\\) always exists and is not nullable\\.$#"
count: 2
Expand Down
11 changes: 11 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
<code>is_array($newColumns)</code>
</RedundantCondition>
</file>
<file src="src/Db/Adapter/PostgresAdapter.php">
<NoValue>
<code><![CDATA[$options['primary_key']]]></code>
</NoValue>
<RedundantCondition>
<code><![CDATA[is_string($options['primary_key'])]]></code>
</RedundantCondition>
<TypeDoesNotContainType>
<code><![CDATA[is_array($options['primary_key'])]]></code>
</TypeDoesNotContainType>
</file>
<file src="src/TableFinderTrait.php">
<PossiblyUndefinedArrayOffset>
<code>$split[0]</code>
Expand Down
Loading

0 comments on commit 97e41a7

Please sign in to comment.