Skip to content

Commit

Permalink
Merge pull request #4 from apisearch-io/fix/fixing-only-when-string
Browse files Browse the repository at this point in the history
Triming only when string
  • Loading branch information
mmoreram authored Aug 9, 2019
2 parents e556bd0 + 0e9ee12 commit 456d91a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ public function __construct(
$this->staticFolder = empty($staticFolder)
? $adapter::getStaticFolder($this->kernel)
: $staticFolder;
$this->staticFolder = '/' . trim($this->staticFolder, '/') . '/';

if (is_string($this->staticFolder)) {
$this->staticFolder = '/' . trim($this->staticFolder, '/') . '/';
}
}
}

Expand Down

0 comments on commit 456d91a

Please sign in to comment.