tests/languages/php/number_feature.test


Log

Author Commit Date CI Message
Ayesh Karunaratne 01af04ed 2021-01-07T02:01:16 PHP: Numeral syntax improvements (#2701) Improves numeral literal handling in the Prism PHP component in two ways: 1. Since PHP 7.4, it is possible to use [underscore numeric separator](https://php.watch/versions/7.4/underscore_numeric_separator). Prism correctly handles this for decimal numbers, but not for binary, octal, and hex numerals although PHP supports the underscore separator for binary, octal, and hex numeric literals as well. 2. In upcoming PHP 8.1, PHP supports an [explicit octal numeral prefix `0o`/`0O`](https://php.watch/versions/8.1/explicit-octal-notation). The existing `0` prefix is not removed. This commit updates the PHP number regex to accommodate both cases above, and expands the tests for new syntax.
Tom Pavelec 38808e64 2020-10-13T14:03:42 PHP: Added support for PHP 7.4 + other major improvements (#2566)