Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 5.8: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')' #260

Open
naowas opened this issue Nov 8, 2021 · 1 comment · May be fixed by #265
Open

Laravel 5.8: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')' #260

naowas opened this issue Nov 8, 2021 · 1 comment · May be fixed by #265

Comments

@naowas
Copy link

naowas commented Nov 8, 2021

Unable to hit route www.domain.com/health/check or artisan command health:panel

Issue occurring on \vendor\pragmarx\health\src\Checkers\Extensions.php

$alerts = $needed->reject(fn ($value) => $installed->contains($value));

Laravel version: 5.8
PHP: 7.2.3

lintaba added a commit to lintaba/health that referenced this issue Dec 18, 2021
@lintaba lintaba linked a pull request Dec 18, 2021 that will close this issue
@lintaba
Copy link

lintaba commented Dec 18, 2021

fn (arrow functions ) are introduced in PHP 7.4.
Either the composers.json's minimum php version should be bumped to 7.4, or it should be replaced with the long version. I'd vote for the second option, so made a PR: #265

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants