:sparkles: PHP 8.1 | New `PHPCompatibility.Numbers.NewExplicitOctalNotation` sniff by jrfnl · Pull Request #1420 · PHPCompatibility/PHPCompatibility
Navigation Menu
{{ message }}
PHPCompatibility / PHPCompatibility Public
- Notifications You must be signed in to change notification settings
- Fork 204
Conversation
Copy link Copy Markdown
Member
Integer Octal Literal Prefix
Octal integers can now use an explicit
0o/0Oprefix 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
- Explicit octal notation for integers php/php-src#6360
- php/php-src@589bdf3
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
added
Type: enhancement
PR: ready for review
labels
jrfnl
added this to the
10.0.0 milestone
jrfnl
requested a review
from wimg
jrfnl
mentioned this pull request
47 tasks
wimg approved these changes Dec 5, 2022
wimg
merged commit
46639a1
into
develop
wimg
deleted the
php-8.1/new-explicitoctalnotation-sniff
branch
jrfnl
removed
the
PR: ready for review
label
jrfnl
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment