We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e9d2c commit 3b141ddCopy full SHA for 3b141dd
composer.json
@@ -9,7 +9,8 @@
9
}
10
],
11
"require": {
12
- "ext-json": "*"
+ "ext-json": "*",
13
+ "jiannei/helpers": "^0.2.1"
14
},
15
"require-dev": {
16
"phpunit/phpunit": "^9.4",
src/Http/Middleware/TransformEnums.php
@@ -19,7 +19,7 @@ class TransformEnums
19
{
20
public function handle(Request $request, Closure $next, $strict = true)
21
22
- $strict = (bool) json_decode(strtolower($strict));
+ $strict = strtobool($strict);
23
24
$request->transformEnums(Config::get('enum.transformations'), $strict);
25
0 commit comments