Skip to content

Commit 479a0f5

Browse files
committed
Psalm cleanups
1 parent 2009fe1 commit 479a0f5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build/kint.phar

-28 Bytes
Binary file not shown.

src/Kint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
*
4545
* @psalm-import-type CallParameter from CallFinder
4646
*
47-
* @psalm-type KintMode = Kint::MODE_*|bool
47+
* @psalm-type KintMode = array-key|bool
4848
*
4949
* @psalm-api
5050
*/

src/Parser/TracePlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ public function parseComplete(&$var, AbstractValue $v, int $trigger): AbstractVa
9191

9292
$index = $frame->getContext()->getName();
9393

94-
if (!isset($trace[$index]) || Utils::traceFrameIsListed($trace[$index], self::$blacklist)) {
94+
if (!isset($trace[$index]['file']) || Utils::traceFrameIsListed($trace[$index], self::$blacklist)) {
9595
continue;
9696
}
9797

98-
if (isset($trace[$index]['file']) && false !== ($realfile = \realpath($trace[$index]['file']))) {
98+
if (false !== ($realfile = \realpath($trace[$index]['file']))) {
9999
foreach ($path_blacklist as $path) {
100100
if (0 === \strpos($realfile, $path)) {
101101
continue 2;

0 commit comments

Comments
 (0)