phan/phan
Support PHP 8.0 %h/%H in PrintfCheckerPlugin, warn about compatibility
オープン
#4,331 opened on 2020/12/28
enhancementhelp wantedphp8
Repository metrics
- Stars
- (5,455 個のスター)
- PR merge metrics
- (平均マージ 7d) (30d で 8 merged PRs)
説明
<?php
printf("%h\n", M_PI); // empty in php 7.4, 3.14159 in php 8.0
printf() and friends now support the %h and %H format specifiers. These are the same as %g and %G, but always use "." as the decimal separator, rather than determining it through the LC_NUMERIC locale.