You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reflection(Class)Constant::__toString() should not warn on NAN conversions #22683
<?phpechonewReflectionConstant('NAN');
class Demo {
publicconstMY_NAN = NAN;
}
echonewReflectionClassConstant(Demo::class, 'MY_NAN');
results in:
Warning: unexpected NAN value was coerced to string in /in/868PE on line 3
Constant [ <persistent> float NAN ] { NAN }
Warning: unexpected NAN value was coerced to string in /in/868PE on line 9
Constant [ public float MY_NAN ] { NAN }
but the reflection extension shouldn't emit these warnings when the extension is responsible for the conversion - they are emitted by the __toString() call, not the echo
Activity
Fix phpGH-22683: Reflection(Class)Constant::__toString() should not w…
Fix GH-22683: Reflection(Class)Constant::__toString() should not warn…
Merge branch 'PHP-8.5'