:sparkles: PHP 8.1 | New `PHPCompatibility.Numbers.NewExplicitOctalNotation` sniff by jrfnl · Pull Request #1420 · PHPCompatibility/PHPCompatibility

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@jrfnl

Copy link Copy Markdown

Member

@jrfnl jrfnl commented

Dec 5, 2022

edited

Loading

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

@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

Reviewers

@wimg wimg wimg approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

10.0.0-alpha1

Development

Successfully merging this pull request may close these issues.

2 participants

@jrfnl @wimg