We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.19.0
8.4.1
Getting Parse error: syntax error, unexpected token "private(set)" when parsing constructor with asymmetric visibility property.
Parse error: syntax error, unexpected token "private(set)"
Example class
readonly class Scripts { public function __construct( private(set) ?string $body = null, ) { } }
The text was updated successfully, but these errors were encountered:
Sorry, my bad - forgot it’s a readonly class.
Sorry, something went wrong.
No branches or pull requests
Pint Version
1.19.0
PHP Version
8.4.1
Description
Getting
Parse error: syntax error, unexpected token "private(set)"
when parsing constructor with asymmetric visibility property.Steps To Reproduce
Example class
The text was updated successfully, but these errors were encountered: