Skip to content

Fix #194 - oddities around the static keyword. #210

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

Merged

Conversation

MaartenStaa
Copy link
Contributor

Previously, all of the following examples would produce parse errors,
while being valid PHP code:

  • new static;
  • new static::$a;
  • if ($a instanceof static) {}

This commit takes care of these edge cases.

Previously, all of the following examples would produce parse errors,
while being valid PHP code:

- new static;
- new static::$a;
- if ($a instanceof static) {}

This commit takes care of these edge cases.
@msftclas
Copy link

msftclas commented Nov 17, 2017

CLA assistant check
All CLA requirements met.

@MaartenStaa
Copy link
Contributor Author

I added tests to the best of my ability, but I'm not super familiar with the code base, so any feedback is welcome. 😃

@jens1o
Copy link
Contributor

jens1o commented Nov 17, 2017

Awesome! :)

Copy link
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

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

This looks great, thanks!

@roblourens roblourens merged commit 10e901a into microsoft:master Nov 17, 2017
@jens1o
Copy link
Contributor

jens1o commented Nov 17, 2017

@felixfbecker Could you file a new release, please?

@roblourens
Copy link
Member

v0.0.8 contains this

@MaartenStaa MaartenStaa deleted the fix-new-static-and-instanceof-static branch November 17, 2017 18:29
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.

4 participants