Skip to content

Add # as vallid character for variable.#218

Closed
Blurazzle wants to merge 1 commit intophpstan:1.23.xfrom
Blurazzle:1.23.x
Closed

Add # as vallid character for variable.#218
Blurazzle wants to merge 1 commit intophpstan:1.23.xfrom
Blurazzle:1.23.x

Conversation

@Blurazzle
Copy link

This pull request is related to the issue phpstan/phpstan#9919 (comment). The problem that it resolves can be seen in https://phpstan.org/r/459a7de6-aa15-42ee-8967-0777088f411e.

Our application is connected to an IBM i DB2 database. The column names are sometimes like the following

Currently, the lexer does not recognize these as valid property names, while in fact, these are valid properties in PHP that can be accessed with $this->{'PBGD#L'} syntax.

Add # as vallid character for variable.
@ondrejmirtes
Copy link
Member

We can't do this change so lightly. It's a BC break and it's questionable whether we even want that.

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.

2 participants