if you bypass https://github.com/yiisoft/yii2-debug/issues/465 by removing the implementation in opis SerializableClosure.php
you get multiple Implicit conversions from float
yii2-debug/src/views/default/panels/db/detail.php
line 53 -54
` $millisecondsDiff = (int)(($timeInSeconds - (int)$timeInSeconds) * 1000);
What steps will reproduce the problem?
if you bypass https://github.com/yiisoft/yii2-debug/issues/465 by removing the implementation in opis SerializableClosure.php you get multiple Implicit conversions from float yii2-debug/src/views/default/panels/db/detail.php line 53 -54 ` $millisecondsDiff = (int)(($timeInSeconds - (int)$timeInSeconds) * 1000);
you need cast int
yii2-debug/src/models/search/Base.php line 33-38 ` if (isset($value)&&mb_strpos($value, '>') !== false) { $value = (int)str_replace('>', '', $value); $filter->addMatcher($attribute, new matchers\GreaterThan(['value' => $value]));
cast int and add isset
yii2-debug/src/views/default/panels/profile/detail.php line 48 -50
$timeInSeconds = (int)$data['timestamp'] / 1000;
cast int
/yii2-debug/src/views/default/view.php line 68, 113
. ', ' . date('Y-m-d h:i:s a',(int) $meta['time'])
echo ' at ' . date('Y-m-d h:i:s a', (int)$summary['time']) . ' by ' . $summary['ip'];
cast needyii2-debug/src/views/default/panels/config/summary.php line 6 , 8
<span class="yii-debug-toolbar__label"><?= $panel->data['application']['yii'] ?? '' ?></span>
<span class="yii-debug-toolbar__label"><?= $panel->data['php']['version'] ?? '' ?></span>
add default value (because is possible to have undefined key)
What's expected?
What do you get instead?
Additional info