Skip to content

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

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

✨ PHP 8.1 | New PHPCompatibility.Numbers.NewExplicitOctalNotation sniff#1420
wimg merged 1 commit intodevelopfrom
php-8.1/new-explicitoctalnotation-sniff

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 5, 2022

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants