Skip to content

✨ PHP 8.1 | New PHPCompatibility.Numbers.NewExplicitOctalNotation sniff - #1420

Merged
wimg merged 1 commit into
developfrom
php-8.1/new-explicitoctalnotation-sniff
Dec 5, 2022
Merged

wimg merged 1 commit into
developfrom
php-8.1/new-explicitoctalnotation-sniff

Conversation

@jrfnl

@jrfnl jrfnl commented Dec 5, 2022 •

Copy link
Copy Markdown
Member

Integer Octal Literal Prefix

Octal integers can now use an explicit 0o/0O prefix in integer literals, similarly to binary and hexadecimal integer literals.

Includes unit tests.
Includes documentation.

Refs:

Related to #1299

…niff

> **Integer Octal Literal Prefix**
>
> Octal integers can now use an explicit `0o`/`0O` prefix in integer literals, similarly to binary and hexadecimal integer literals.

Includes unit tests.
Includes documentation.

Refs:
* https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.core.octal-literal-prefix
* https://wiki.php.net/rfc/explicit_octal_notation
* php/php-src#6360
* php/php-src@589bdf3
@jrfnl jrfnl added this to the 10.0.0 milestone Dec 5, 2022
@jrfnl
jrfnl requested a review from wimg December 5, 2022 03:07
@jrfnl jrfnl mentioned this pull request Dec 5, 2022
30 of 47 tasks
@wimg
wimg merged commit 46639a1 into develop Dec 5, 2022
@wimg
wimg deleted the php-8.1/new-explicitoctalnotation-sniff branch December 5, 2022 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants