CuyZ / Valinor

PHP library that helps to map any input into a strongly-typed value object structure.

Home Page:https://valinor.cuyz.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using path mapping modifier fails when given key is an integer

romm opened this issue · comments

\CuyZ\Valinor\Mapper\Source\Source::array([0 => 'foo'])
    ->map([
        '0' => 'some_key'
    ]);
PHP Fatal error:  Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, int given in /…/src/Mapper/Source/Modifier/PathMapping.php:73