Skip to content

Commit

Permalink
pref: replace helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Jun 16, 2021
1 parent 50e9d2c commit 3b141dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
}
],
"require": {
"ext-json": "*"
"ext-json": "*",
"jiannei/helpers": "^0.2.1"
},
"require-dev": {
"phpunit/phpunit": "^9.4",
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Middleware/TransformEnums.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TransformEnums
{
public function handle(Request $request, Closure $next, $strict = true)
{
$strict = (bool) json_decode(strtolower($strict));
$strict = strtobool($strict);

$request->transformEnums(Config::get('enum.transformations'), $strict);

Expand Down

0 comments on commit 3b141dd

Please sign in to comment.