Skip to content
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

Octal literal 0o #6410

Closed
Tracked by #6395
weirdan opened this issue Sep 4, 2021 · 2 comments
Closed
Tracked by #6395

Octal literal 0o #6410

weirdan opened this issue Sep 4, 2021 · 2 comments

Comments

@weirdan
Copy link
Collaborator

weirdan commented Sep 4, 2021

https://psalm.dev/r/e40d9e2ece

nikic/php-parser support for 8.1 is tracked here: nikic/PHP-Parser#801

@psalm-github-bot
Copy link

psalm-github-bot bot commented Sep 4, 2021

I found these snippets:

https://psalm.dev/r/e40d9e2ece
<?php

$_o = 0o10;
/** @psalm-trace $_o */; // expected: 8
Psalm output (using commit 68ad0b2):

ERROR: ParseError - 3:8 - Syntax error, unexpected T_STRING on line 3

ERROR: UndefinedConstant - 3:8 - Const o10 is not defined

INFO: Trace - 4:24 - $_o: 0

@weirdan weirdan added the parser label Sep 4, 2021
@weirdan weirdan added this to the PHP 8.1 milestone Sep 4, 2021
@orklah
Copy link
Collaborator

orklah commented Nov 4, 2021

Apparently, this solved itself, probably by updating PHP-Parser

@orklah orklah closed this as completed Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants