Skip to content

Commit 0e9ee12

Browse files
committedAug 9, 2019
Triming only when string
1 parent e556bd0 commit 0e9ee12

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/Application.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ public function __construct(
154154
$this->staticFolder = empty($staticFolder)
155155
? $adapter::getStaticFolder($this->kernel)
156156
: $staticFolder;
157-
$this->staticFolder = '/' . trim($this->staticFolder, '/') . '/';
157+
158+
if (is_string($this->staticFolder)) {
159+
$this->staticFolder = '/' . trim($this->staticFolder, '/') . '/';
160+
}
158161
}
159162
}
160163

0 commit comments

Comments
 (0)
Please sign in to comment.