Skip to content

[Bug]: Parse error in discover-{uuid} #485

@snapey

Description

@snapey

Extension Version

1.2.1

PHP Binary

Herd

Operating System

macOS

What happened?

I'm being dogged by an error in a discover- file

Error:
Parse error: syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE) in /Users/mark/sites/rotarota/rotarota/vendor/_laravel_ide/discover-77e9e6a2445455b87d4f4cd834e4e23d.php on line 75

which is the __construct below.

$docblocks = new class($factory) {
    public function __construct(protected $factory) {}

    public function forMethod($method)

The CLI and webserver are both running php 8.4

Mimimal Code Sample

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions