lundi 29 octobre 2018

helpers.php related error with php artisan serve

I made loads of changes within my code and unfortunately kind of lost track what were the last one.. but I guess one of them created this weird problem. When I'm trying to run php artisan serve, I get this error -

Parse error: parse error in /Users/Guest/admanager/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 500

And the function that returns the error in helpers.php looks like this -

function factory()
{
    $factory = app(EloquentFactory::class);

    $arguments = func_get_args();

    if (isset($arguments[1]) && is_string($arguments[1])) {
        return $factory->of($arguments[0], $arguments[1])->times($arguments[2] ? null); // specifically, this is line 500
    } elseif (isset($arguments[1])) {
        return $factory->of($arguments[0])->times($arguments[1]);
    }

    return $factory->of($arguments[0]);
}



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2qgg0Bu
via IFTTT

Aucun commentaire:

Enregistrer un commentaire