Skip to content

Commit e98c06e

Browse files
committed
Fix errors reported by psalm
1 parent 50e6306 commit e98c06e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/DebugSql.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public static function sql(Query $query, $showValues = true, $showHtml = null, $
7676
$sql = static::interpolate($sql, $query->getValueBinder()->bindings());
7777
}
7878

79+
/** @var array $trace */
7980
$trace = Debugger::trace(['start' => 1, 'depth' => $stackDepth + 2, 'format' => 'array']);
8081
$file = isset($trace[$stackDepth]) ? $trace[$stackDepth]['file'] : 'n/a';
8182
$line = isset($trace[$stackDepth]) ? $trace[$stackDepth]['line'] : 0;

src/DebugTimer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,6 @@ public static function requestStartTime()
211211
$startTime = env('REQUEST_TIME');
212212
}
213213

214-
return $startTime;
214+
return (float)$startTime;
215215
}
216216
}

src/Panel/DeprecationsPanel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function summary()
138138
$data = $this->_prepare();
139139
}
140140

141-
return array_reduce($data, function ($carry, $item) {
141+
return (string)array_reduce($data, function ($carry, $item) {
142142
if (empty($item)) {
143143
return $carry;
144144
}

0 commit comments

Comments
 (0)