luthier-ci icon indicating copy to clipboard operation
luthier-ci copied to clipboard

Is this typo? (group route middleware)

Open banqhsia opened this issue 5 years ago • 1 comments

At RouteBuilder.php:154

    if(isset($attributes['middleware']))
    {
        if(is_string($attributes['middleware']))
        {
            $attributes['middleware'] = [ $attributes['middleware'] ];
        }
        else
        {
            if(!is_array($attributes['middleware']))
            {
                show_error('Route group middleware must be an array o a string');
            }
        }
        self::$context['middleware']['route'][] = $attributes['middleware'];
    }

Is the message Route group middleware must be an array o a string a typo? Should be "or" not "o"?

banqhsia avatar Jun 04 '19 15:06 banqhsia

Howdy @banqhsia

Yes, this is a typo 😓

andersonsalas avatar Jun 26 '19 11:06 andersonsalas