|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-12-13 02:07 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2020-12-13 02:07 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 10:00:01 2025 UTC |
Description: ------------ Union types in class return double instead type error Test script: --------------- class Number { public function __construct( private int | float $number ) { print_r(gettype($number)); exit(); } } new Number("1.0"); Expected result: ---------------- Excepted Output should be: TypeError Actual result: -------------- Current Output is: double