Skip to content

Commit 45c2b58

Browse files
authored
Merge pull request #787 from cakephp/fix-psalm
Fix psalm
2 parents 9b6deb1 + 326b4ab commit 45c2b58

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

psalm-baseline.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@
123123
<UndefinedInterfaceMethod occurrences="1">
124124
<code>genericInstances</code>
125125
</UndefinedInterfaceMethod>
126+
<TypeDoesNotContainType occurrences="1">
127+
<code>!$connection instanceof ConnectionInterface</code>
128+
</TypeDoesNotContainType>
126129
</file>
127130
<file src="src/Panel/VariablesPanel.php">
128131
<InvalidArgument occurrences="1">
@@ -152,8 +155,9 @@
152155
<DeprecatedMethod occurrences="1">
153156
<code>makeNeatArray</code>
154157
</DeprecatedMethod>
155-
<InvalidArgument occurrences="1">
158+
<InvalidArgument occurrences="2">
156159
<code>$value</code>
160+
<code>$values</code>
157161
</InvalidArgument>
158162
</file>
159163
</files>

tests/TestCase/DebugIncludeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testIncludePaths()
2727
$include = new DebugInclude();
2828
$result = $include->includePaths();
2929
$this->assertIsArray($result);
30-
$this->assertFileExists($result[0]);
30+
$this->assertStringContainsString($result[0], get_include_path());
3131
}
3232

3333
public function testIsCakeFile()

0 commit comments

Comments
 (0)