|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-06-23 12:01 UTC] jpauli@php.net
[2018-01-10 19:09 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2018-01-10 19:09 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 00:00:02 2025 UTC |
Description: ------------ If you don't "next" on the generator, the typehint of the function is not checked. Test script: --------------- <?php function hello(closure $closure) { $closure('hello'); yield 10; } hello(); Expected result: ---------------- Argument 1 passed to hello must be an instance of Closure, none given