|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-09-21 06:24 UTC] krakjoe@php.net
-Status: Open
+Status: Not a bug
[2014-09-21 06:24 UTC] krakjoe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 09:00:02 2026 UTC |
Description: ------------ This started with a documentation check for a reply I received: "Your code to test function creation should be !is_callable(${'is'.$AcctTypes[$i].'file'})" this does not match what is given in the example in the documentation (although it works somehow regardless of the example). see Actual for the list of items that need attention. Test script: --------------- 1. http://php.net/manual/en/function.is-callable.php 2. search for type hint in search box [no results] Expected result: ---------------- - clarified documentation for "name" argument in http://php.net/manual/en/function.is-callable.php - "type hint" definition in the documentation somewhere I can search for - callable listed in right hand side navigatoin sidebar. Actual result: -------------- is_callable()'s "name" argument conflicts with its "callable" type in the documentation at http://php.net/manual/en/function.is-callable.php does "the callback function to check" mean: - the function body string - the lambda function body (this seems more appropriate) - the name string of the variable containing the function name - the name of the function replace name with functionBody? this way people know to expand the variable name, otherwise, it's confusing and they will put in a string rather than lambda function body. this is exacerbated by another lack of definition or proper link for the linked type "callable" at http://php.net/manual/en/language.types.callable.php this links to http://php.net/manual/en/language.types.callable.php if you notice on the right hand side navigation where it lists types, "Callable" is not listed as a type. none of the pages mentioned gives a definition for "type hint" (a new term for me). I know what a type is, but I don't know how "hint" (with regards to "type hint") applies to a type or changes it(?) or makes it different. I don't know what "type hint" means or does or why it's there. so I put "type hint" in the search box, and I got "not found" for search results.