Skip to content

Commit ef54898

Browse files
committed
Fixed register $type on BodyParserHandler
1 parent 84da574 commit ef54898

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/BodyParserHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public static function register(string $bodyParserClass)
2929
$parser = new $bodyParserClass();
3030
static::$parsers[] = $parser;
3131
foreach ($parser->getSupportedTypes() as $type) {
32-
static::$typesIndex[$type] = strtolower($parser);
32+
$type = strtolower($type);
33+
static::$typesIndex[$type] = $parser;
3334
}
3435
}
3536

0 commit comments

Comments
 (0)