Commit graph

154 commits

Author SHA1 Message Date
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
Thomas Punt
e9f4e006a1 Document ReflectionFunctionAbstract::hasReturnType() method
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337566 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-20 14:06:46 +00:00
Thomas Punt
a8b62d0b29 Document ReflectionParameter::getType() method
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337564 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-20 13:26:51 +00:00
Thomas Punt
e6572f21bc Document ReflectionParameter::hasType() method
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337562 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-20 12:47:35 +00:00
Thomas Punt
484885f2db Rectify ReflectionType::isBuiltin() ID
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337530 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-18 10:09:46 +00:00
Thomas Punt
b8eddc6d98 Document new ReflectionType class
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337520 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-17 21:20:55 +00:00
Christoph Michael Becker
d6d57b5f93 we can do better than in previous commit
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337486 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-15 16:32:55 +00:00
Christoph Michael Becker
5399e97fab improved ReflectionProperty::isDefault() docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337485 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-15 16:29:14 +00:00
Christoph Michael Becker
878a454b06 The isDefault method for ReflectionProperty is unclear in the description. This patch aims to clarify the wording.
-- 
Provided by anonymous 61022 (james@asgrim.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337484 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-15 16:15:48 +00:00
Sherif Ramadan
464f461fbf Add some sensible example for ReflectionParameter::getDeclaringClass()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337035 c90b9560-bf6c-de11-be94-00142212c4b1
2015-06-23 14:25:06 +00:00
Maciek Sokolewicz
68b5b97731 fixed various english grammar/spelling mistakes (patches by cmb)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336240 c90b9560-bf6c-de11-be94-00142212c4b1
2015-03-29 18:38:13 +00:00
Kalle Sommer Nielsen
af8e8b6315 Updated ReflectionFunctionAbstract::isClosure with an example, improved some other text, and removed the "undocumented" blurb -- Patch by Jeremy Lindblom
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336079 c90b9560-bf6c-de11-be94-00142212c4b1
2015-03-17 04:13:27 +00:00