Commit graph

174 commits

Author SHA1 Message Date
Christoph Michael Becker
ecd72af657 Reflection can now get defaults for internals, see https://github.com/php/php-src/pull/5353
Patch contributed by Sjon Hortensius.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350519 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-05 09:49:21 +00:00
Christoph Michael Becker
a465b89916 Reflection*::export is deprecated as of PHP 7.4.0
Seems we're overdue actually documenting these methods.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350501 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-03 08:59:26 +00:00
Christoph Michael Becker
3a3b3279ef Fix #79593: Manual page missing for class ReflectionReference
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349867 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-13 19:41:26 +00:00
Christoph Michael Becker
69dba7ad55 PHP 7 as well
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349091 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-02 17:01:17 +00:00
George Peter Banyard
b716a57a5e Introspect is better term to use in scope of reflection: https://en.wikipedia.org/wiki/Type_introspection
-- 
Provided by anonymous 101415 (dario_swain@yahoo.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349021 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-26 10:22:32 +00:00
Christoph Michael Becker
0ce6b8da1e Document ReflectionParameter::__construct()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348589 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-19 17:03:47 +00:00
Christoph Michael Becker
c4c885db2f Fix #78936: Reflection methods for typed properties not documented
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348478 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-09 15:22:24 +00:00
Christoph Michael Becker
6890875704 The signature of ReflectionMethod::getClosure() depends on its usage
As already pointed out in the description of the $object parameter.
See also bug #78897.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348397 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-02 12:20:37 +00:00
George Peter Banyard
83f9fa789a Fix method name, provided by anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347954 c90b9560-bf6c-de11-be94-00142212c4b1
2019-09-07 12:29:38 +00:00
Pieter Hordijk
c55e85a130 var_export's second param is a bool not an int
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347166 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-08 06:23:00 +00:00
Christoph Michael Becker
bab9e5ad7f Fix parameter type and description
Patch provided by Jochem Klaver.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346993 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-11 12:47:04 +00:00
Christoph Michael Becker
f9e14201d4 Improve docs
Patch provided by Florian Berberich.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346901 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-25 11:37:39 +00:00
Christoph Michael Becker
1046d428ad Unify ReflectionClass::isIterateable() and ::isIterable() and make the former an alias
Cf. <http://git.php.net/?p=php-src.git;a=commit;h=c1500f8519aded29c3632de4240fbc0a4e485a81>.

This integrates user note 123629.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346865 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-21 08:37:26 +00:00
Christoph Michael Becker
4fd00d6b39 Add example for PHP 7.1+
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346839 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-15 11:43:02 +00:00
Christoph Michael Becker
05c356b812 Reverse merged revision(s) 346836-346835 from phpdoc/en/trunk:
Add missing changelog entry
........
Correct return-types

Patch provided by Rasmus Schultz.
........
Cf. <http://news.php.net/php.doc.cvs/16556>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346838 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-15 09:01:33 +00:00
Christoph Michael Becker
663be7df7f Add missing changelog entry
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346836 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-14 22:40:46 +00:00
Christoph Michael Becker
828daf218f Correct return-types
Patch provided by Rasmus Schultz.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346835 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-14 22:21:41 +00:00
Christoph Michael Becker
e309892680 Add version info for ReflectionNamedType
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346834 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-14 22:01:36 +00:00
Christoph Michael Becker
481248b3a1 Fix typo
Patch provided by girgias.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346813 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-12 16:33:07 +00:00
Christoph Michael Becker
962214a5cc Simplify signature of variadic functions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346102 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-27 19:09:14 +00:00
Christoph Michael Becker
c5971e972a Fix #76949: ReflectionType::__toString() not marked as deprecated
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345735 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-29 21:28:39 +00:00
Christoph Michael Becker
437bbf134e Show inherited constants
We do this for the classes of the core and bundled extensions only, for now.
This also allows us to remove some slightly incorrect and unnecessary copy
and paste documentation, where inherited constants have been explicitly
documented for child classes.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345662 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-20 15:10:00 +00:00
Christoph Michael Becker
1c1b29f597 Fix #65011: ReflectionProperty::getDocComment() fails for multiple variable declarations
We add an example to clarify the behavior.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345251 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-30 12:42:20 +00:00
Christoph Michael Becker
5383ecabcb Document ReflectionParameter::isDefaultValueConstant()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345075 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-29 14:14:26 +00:00
Christoph Michael Becker
b0069c55f1 Document ReflectionParameter::getDefaultValueConstantName()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345072 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-29 13:02:30 +00:00
Christoph Michael Becker
2992085869 Correct return value (false instead of null)
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344986 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-08 12:47:13 +00:00
Christoph Michael Becker
fce2efe7bb Extend example
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344860 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-27 13:50:44 +00:00
Christoph Michael Becker
1af3f3f391 In docs, value to be set into static property can only be string, which doesn't make sense, and contradicts actual engine prototype: 12c386f5b9/ext/reflection/php_reflection.c (L3904)
-- 
Provided by anonymous 63059 (alex@kurilo.me)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344476 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-09 13:04:58 +00:00
Christoph Michael Becker
1b043c5a4e ReflectionZendExtension::export receives a second argument boolean, not string.
-- 
Provided by anonymous 88937 (carusogabriel34@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344471 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-09 12:48:31 +00:00
Christoph Michael Becker
a2165b1ec5 Fix typos
Patches provided by anonymous users.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344377 c90b9560-bf6c-de11-be94-00142212c4b1
2018-02-27 13:46:38 +00:00
Jakub Vrana
578a13198f Update versions based on parsing sources
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344132 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-31 12:27:12 +00:00
Jakub Vrana
e8172b8b80 Document return value for functions (bug #75374)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344084 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 22:53:25 +00:00
Jakub Vrana
7c50ead1ed Fix versions based on parsed php-src
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344068 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 15:23:17 +00:00
Jakub Vrana
99680c836a Unify version format
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344064 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 15:06:46 +00:00
Jakub Vrana
32c63651ff Unify version format
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344063 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 15:05:04 +00:00
Jakub Vrana
3e9734391f Add new functions to versions.xml
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344041 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 13:39:15 +00:00
Jakub Vrana
608edf885e Document null return value (bug #75376)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344004 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-28 13:11:27 +00:00
Jakub Vrana
5f6c0c7994 Document PHP 7.2 functions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343928 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-26 13:20:18 +00:00
Jakub Vrana
b8758b0605 Use entities in initializer
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343899 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 19:11:34 +00:00
Jakub Vrana
dd07341fae Remove trailing fullstop in <refpurpose>
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343888 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 15:34:22 +00:00
Christoph Michael Becker
481c11df80 Fix see-also sections
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342902 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-21 12:11:15 +00:00
Christoph Michael Becker
b9722ce216 Fix ReflectionFunctionAbstract version requirements
Patch originally provided by anon user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342893 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-21 11:19:59 +00:00
Christoph Michael Becker
cf616ef1f0 Fix bug #74261: ReflectionClassConstant not documented
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342886 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-20 14:40:15 +00:00
Christoph Michael Becker
c957c1054f Fix #74245: No other ways to get all constants from class but using reflection
We're not actually fixing this issue, but rather document
ReflectionClass::getConstants().

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342147 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-17 12:25:04 +00:00
Andrey Andreev
584095e7e8 Consistent description of getModifiers() in ReflectionClass, ReflectionMethod, ReflectionProperty
(relevant for the 'seealso' section on Reflection::getModifierNames())

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342105 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-13 09:28:54 +00:00
Andrey Andreev
206ead71b9 Reflection::getModifierNames() content
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342104 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-13 09:21:08 +00:00
Christoph Michael Becker
b11f2fefd5 Improvements provided by anon users
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340325 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-05 14:32:17 +00:00
Christoph Michael Becker
992b071c3d Fix #73195: ReflectionClass::getMethod() filter arguments doesn't accept combinations
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340255 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-29 10:12:50 +00:00
Christoph Michael Becker
e147cb1555 Fix method proto (patch provided by Gert)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339981 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-03 23:57:28 +00:00
Christoph Michael Becker
142e1a0eb7 typo fixes submitted by anon users
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338501 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-15 14:14:37 +00:00