Skip to content

Commit

Permalink
v3.2.4
Browse files Browse the repository at this point in the history
* Core:
  - `Orchestra\Support\Str::prepareBindings()` should only convert scalar values such as `integer`, `float`, `string` or `boolean`.

Signed-off-by: crynobone <[email protected]>
  • Loading branch information
crynobone committed Apr 23, 2016
1 parent 732240d commit 3fd1cc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ title: Support Change Log

## Version 3.2 {#v3-2}

### v3.2.4 {#v3-2-4}

* Core:
- `Orchestra\Support\Str::prepareBindings()` should only convert scalar values such as `integer`, `float`, `string` or `boolean`.

### v3.2.3 {#v3-2-3}

* Core:
Expand Down
4 changes: 3 additions & 1 deletion src/Support/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ protected static function prepareBinding(array $replacements = [], $prefix = '{'
$bindings = [];

foreach ($replacements as $key => $value) {
$bindings["{$prefix}{$key}{$suffix}"] = $value;
if (is_scalar($value)) {
$bindings["{$prefix}{$key}{$suffix}"] = $value;
}
}

return $bindings;
Expand Down

0 comments on commit 3fd1cc5

Please sign in to comment.