protected function encodeArray(array $args): array
    {
        foreach ($args as $key => $value) {
            if (is_object($value)) {
                $args[$key] = get_class($value);
            }
        }
        return $args;
    }
protected function encodeArray(array $args): array
    {
        foreach ($args as $key => $value) {
            if (is_object($value)) {
                $args[$key] = get_class($value);
            }
        }
        return $args;
    }
protected function encodeArray ( array $ args ) : array { foreach ( $ args as $ key => $ value ) { if ( is_object ( $ value ) ) { $ args [ $ key ] = get_class ( $ value ) ; } } return $ args ; }
Default array encoder

- Convert object to class name
Default array encoder