|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-03-31 20:48 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2017-03-31 20:48 UTC] requinix@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 15:00:02 2025 UTC |
Description: ------------ Mixed (type) it's not a mixed in other language (java, c, etc); It's a unique type, because string, array, any class and other not = mixed or \mixed; Test script: --------------- public function changeValue(string $name, \mixed $data): ClassName {} $object = new ClassName(); $object->changeValue('name', 'email')->getResult(); Expected result: ---------------- FatalThrowableError in ClassName.php line 54: Type error: Argument 2 passed to App\Http\ResponseDataService\ClassName::changeValue() must be an instance of mixed, string given