We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66d156 commit 529aae4Copy full SHA for 529aae4
src/Factories/WidgetFactory.php
@@ -25,7 +25,7 @@ public function run()
25
26
$content = $this->getContentFromCache($args);
27
28
- if ($timeout = (double) $this->getReloadTimeout()) {
+ if ($timeout = (float) $this->getReloadTimeout()) {
29
$content .= $this->javascriptFactory->getReloader($timeout);
30
$content = $this->wrapContentInContainer($content);
31
}
@@ -93,7 +93,7 @@ protected function getContent()
93
*/
94
protected function getContentFromCache($args)
95
{
96
- if ($cacheTime = (double) $this->getCacheTime()) {
+ if ($cacheTime = (float) $this->getCacheTime()) {
97
return $this->app->cache($this->widget->cacheKey($args), $cacheTime, function () {
98
return $this->getContent();
99
});
0 commit comments