Skip to content

Commit 266b1f2

Browse files
committed
Fix psalm warnings and update baseline
1 parent 6d01eee commit 266b1f2

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

psalm-baseline.xml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="3.18.2@19aa905f7c3c7350569999a93c40ae91ae4e1626">
3-
<file src="src/Controller/DashboardController.php">
4-
<NullableReturnStatement occurrences="1">
5-
<code>$this-&gt;redirect(['action' =&gt; 'index'])</code>
6-
</NullableReturnStatement>
7-
</file>
2+
<files psalm-version="4.x-dev@">
83
<file src="src/Controller/MailPreviewController.php">
94
<PossiblyInvalidArgument occurrences="1">
105
<code>$partType</code>
@@ -101,12 +96,12 @@
10196
</MoreSpecificReturnType>
10297
</file>
10398
<file src="src/Panel/SqlLogPanel.php">
104-
<UndefinedInterfaceMethod occurrences="1">
105-
<code>genericInstances</code>
106-
</UndefinedInterfaceMethod>
10799
<TypeDoesNotContainType occurrences="1">
108100
<code>!$connection instanceof ConnectionInterface</code>
109101
</TypeDoesNotContainType>
102+
<UndefinedInterfaceMethod occurrences="1">
103+
<code>genericInstances</code>
104+
</UndefinedInterfaceMethod>
110105
</file>
111106
<file src="src/Plugin.php">
112107
<InvalidArgument occurrences="1"/>
@@ -120,15 +115,16 @@
120115
<DeprecatedMethod occurrences="1">
121116
<code>makeNeatArray</code>
122117
</DeprecatedMethod>
123-
<InvalidArgument occurrences="2">
124-
<code>$value</code>
125-
<code>$values</code>
126-
</InvalidArgument>
127118
<InternalClass occurrences="1">
128119
<code>new HtmlFormatter()</code>
129120
</InternalClass>
130121
<InternalMethod occurrences="1">
131122
<code>dump</code>
132123
</InternalMethod>
124+
<InvalidArgument occurrences="3">
125+
<code>$currentAncestors</code>
126+
<code>$value</code>
127+
<code>$values</code>
128+
</InvalidArgument>
133129
</file>
134130
</files>

psalm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
88
autoloader="tests/bootstrap.php"
99
usePhpDocMethodsWithoutMagicCall="true"
10-
errorBaseline="psalm-baseline.xml"
10+
errorBaseline="./psalm-baseline.xml"
1111
>
1212
<projectFiles>
1313
<directory name="src" />

src/Cache/Engine/DebugEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DebugEngine extends CacheEngine
2828
/**
2929
* Proxied cache engine config.
3030
*
31-
* @var mixed
31+
* @var array
3232
*/
3333
protected $_config;
3434

src/Model/Entity/Panel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Panel extends Entity
2929
/**
3030
* Some fields should not be in JSON/array exports.
3131
*
32-
* @var array
32+
* @var string[]
3333
*/
3434
protected $_hidden = ['content'];
3535

0 commit comments

Comments
 (0)