Php error double arrow



syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW), expecting ‘,’ or ‘)’ #44

Comments

I have done a clean install using php 7.4 and am getting this error in the browser.

syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW), expecting ‘,’ or ‘)’
vendor/spatie/laravel-mailcoach/src/MailcoachServiceProvider.php:61

On the command line when running
php artisan migrate

I get this error.

Symfony\Component\Debug\Exception\FatalThrowableError : syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW), expecting ‘)’

at /var/www/vhosts/xxxxxx/yyyyyy/mailcoach/vendor/spatie/laravel-mailcoach/src/MailcoachServiceProvider.php:61
57| public function register()
58| <
59| $this->mergeConfigFrom(DIR . ‘/../config/mailcoach.php’, ‘mailcoach’);
60|

61| $this->app->singleton(QueryString::class, fn () => new QueryString(urldecode($this->app->request->getRequestUri())));
62|
63| $this->app->singleton(Version::class, function () <
64| $httpClient = new HttpClient();
65|

1 Composer\Autoload\includeFile(«/var/www/vhosts/gray.me.uk/mailcoach.gray.me.uk/mailcoach/vendor/composer/../spatie/laravel-mailcoach/src/MailcoachServiceProvider.php»)
/var/www/vhosts/gray.me.uk/mailcoach.gray.me.uk/mailcoach/vendor/composer/ClassLoader.php:322

2 Composer\Autoload\ClassLoader::loadClass(«Spatie\Mailcoach\MailcoachServiceProvider»)
[internal]:0

I am not a laravel developer just a normal user who wants to evaluate Mailcoach.

The text was updated successfully, but these errors were encountered:

Источник

READ  Tvip 605 android прошивка
Smartadm.ru