Skip to content

Conversation

Kenneth-Sills
Copy link
Contributor

Related RFC.

Closes #1133

Copy link
Member

@ichiriac ichiriac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Collaborator

@czosel czosel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well, sorry about the massive delay and thanks for contributing @Kenneth-Sills!

@czosel czosel merged commit 7a82704 into glayzzle:main Nov 6, 2024
* ```
*/
read_constant_list: function (flags, attrs) {
if (this.expect(this.tok.T_CONST)) {
this.next();
}

const [nullable, type] =
this.version >= 830 ? this.read_optional_type() : [false, null];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe PHP 8.3 translate to version "803". See this comment and the implementation of version parsing.

Copy link
Collaborator

@czosel czosel Dec 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, thanks for pointing that out! Fix: #1149 Looks like you already fixed it :-)

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 this pull request may close these issues.

Fails to parse classes with typed constants
4 participants