Skip to content

Commit 456d91a

Browse files
authored
Merge pull request #4 from apisearch-io/fix/fixing-only-when-string
Triming only when string
2 parents e556bd0 + 0e9ee12 commit 456d91a

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)