Skip to content

Commit

Permalink
Merge pull request #2 from bolt/chores/phpstan-fix-url_decode
Browse files Browse the repository at this point in the history
Chores/phpstan fix url decode
  • Loading branch information
andysh-uk authored Oct 23, 2020
2 parents de2b91b + f9e9797 commit 0ff14b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Twig/TextExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function urlDecode(string $string)
foreach (explode('&', $string) as $chunk) {
$param = explode('=', $chunk);

if ($param) {
if (! empty($param)) {
$params[urldecode($param[0])] = urldecode($param[1]);
}
}
Expand Down

0 comments on commit 0ff14b7

Please sign in to comment.