|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-02-08 10:24 UTC] peehaa@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: peehaa
[2018-02-08 10:24 UTC] peehaa@php.net
[2018-02-08 10:26 UTC] peehaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 21:00:02 2025 UTC |
Description: ------------ I don't know if this already has been reported or already supported, sorry if this is the case. Test script: --------------- <?php function canBeArrayOrString(string|array $route) { // Don't allow object, int, etc.! } Expected result: ---------------- Something like 'Must be string, array - object given!' Actual result: -------------- Valid when array or string has been given.