Skip to content

Commit 3b141dd

Browse files
author
jiannei
committed
pref: replace helper
1 parent 50e9d2c commit 3b141dd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
}
1010
],
1111
"require": {
12-
"ext-json": "*"
12+
"ext-json": "*",
13+
"jiannei/helpers": "^0.2.1"
1314
},
1415
"require-dev": {
1516
"phpunit/phpunit": "^9.4",

src/Http/Middleware/TransformEnums.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TransformEnums
1919
{
2020
public function handle(Request $request, Closure $next, $strict = true)
2121
{
22-
$strict = (bool) json_decode(strtolower($strict));
22+
$strict = strtobool($strict);
2323

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

0 commit comments

Comments
 (0)