Skip to content

Conversation

@nsfisis
Copy link
Contributor

@nsfisis nsfisis commented Oct 23, 2025

Part of #2169

Support alternative notation of octal number literal since PHP 8.1.

https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.core.octal-literal-prefix

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

<?php
014;  // Non-prefix octal literal
0o14; // Prefixed octal literal
?>

@nsfisis nsfisis mentioned this pull request Oct 23, 2025
6 tasks
@tancnle
Copy link
Collaborator

tancnle commented Nov 13, 2025

Thanks, @nsfisis. LGTM 🚀

@tancnle tancnle added this pull request to the merge queue Nov 13, 2025
Merged via the queue into rouge-ruby:master with commit 6c22459 Nov 13, 2025
10 checks passed
@nsfisis nsfisis deleted the php/octal-number branch November 13, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants