Commit graph

165 commits

Author SHA1 Message Date
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
Peter Cowburn
23eb1bd4e5 ReflectionClass::isAnonymous() came in PHP 7.0.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338438 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-08 16:31:23 +00:00
Thomas Punt
d640c0f5e1 Quick cleanup
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338414 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-06 20:13:41 +00:00
Thomas Punt
4d8bee3f1d Finish documenting ReflectionProperty::getDocComment
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338413 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-06 20:03:57 +00:00
Thomas Punt
102a7f2b5e Resolve doc bug #71279
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338410 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-06 19:01:14 +00:00
Adam Harvey
41d8e7ffe4 Update version information to include PHP 7.
This was mostly done programmatically, and is likely wrong for a small number
of functions. We may have to wait for bug reports, unless someone wants to
review this by hand. Basic efforts were made to avoid adding "PHP 7" to
functions that were removed in PHP 5.x (x > 0) and PHP 7, but there are
undoubtedly still issues.

In case we're still using Docbook for PHP 8, I've uploaded the script that I
wrote to do this to GitHub at
https://github.com/LawnGnome/php-doc-version-migrator.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338406 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-04 21:40:07 +00:00
Levi Morrison
b19d4e3e25 Clarify purpose of ReflectionType
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338242 c90b9560-bf6c-de11-be94-00142212c4b1
2015-12-12 03:35:35 +00:00
Thomas Punt
921933ce5b Document ReflectionGenerator class and methods
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337577 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-21 16:07:06 +00:00
Thomas Punt
f581e88c2a Document ReflectionGenerator class and methods
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337576 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-21 16:06:31 +00:00
Thomas Punt
4c106204a1 Document ReflectionFunctionAbstract::getReturnType() method
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337567 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-20 14:24:18 +00:00