Commit graph

38 commits

Author SHA1 Message Date
Danack
b95e76e41d
Types are not hints in PHP. (#1003)
As they are checked at run-time, type checking is enforced in PHP and not 'hinted'.

Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2021-10-09 14:43:01 +01:00
Máté Kocsis
b0b19b6618
Generate methodsynopses based on stubs for recent changes (#903) 2021-10-01 17:23:05 +02:00
Yoshinari Takaoka
969080b592
Added ReflectionAttribute related Documentation. (#588)
* Added ReflectionAttribute related Documentation.

* Update reference/reflection/reflectionattribute/isrepeated.xml

Co-authored-by: Benjamin Eberlei <kontakt@beberlei.de>

* Update reference/reflection/reflectionattribute/isrepeated.xml

Co-authored-by: Benjamin Eberlei <kontakt@beberlei.de>

* Update reference/reflection/reflectionattribute/newinstance.xml

Co-authored-by: Benjamin Eberlei <kontakt@beberlei.de>

* Update reference/reflection/reflectionattribute/newinstance.xml

Co-authored-by: Benjamin Eberlei <kontakt@beberlei.de>

* Update reference/reflection/reflectionclass/getattributes.xml

Co-authored-by: Benjamin Eberlei <kontakt@beberlei.de>

* Update reference/reflection/reflectionclassconstant/getattributes.xml

Co-authored-by: Benjamin Eberlei <kontakt@beberlei.de>

* Update reference/reflection/reflectionfunctionabstract/getattributes.xml

Co-authored-by: Benjamin Eberlei <kontakt@beberlei.de>

* Update reference/reflection/reflectionparameter/getattributes.xml

Co-authored-by: Benjamin Eberlei <kontakt@beberlei.de>

* Update reference/reflection/reflectionproperty/getattributes.xml

Co-authored-by: Benjamin Eberlei <kontakt@beberlei.de>

Co-authored-by: Benjamin Eberlei <kontakt@beberlei.de>
2021-06-04 20:20:42 +09:00
Larry Garfield
fb5362c8b9
Reflection deprecation (#578)
* Clarify what a built-in type is.
* Add PHP 8 equivalent of ReflectionParameter::isArray().
* Leave note on ReflectionParameter::getClass() for what to use instead.
* Clarify order of the array in getParameters().
* Add example to aid working with union types.
* Add updated equivalent of isCallable().
2021-05-06 02:57:35 +02:00
Yoshinari Takaoka
d3191e2f3c replaced deprected warning with deprecated-removed one. 2021-05-02 14:18:03 +09:00
Sergey Panteleev
f9c4a68ef4
Removed references to PHP 5, PHP 7.0 (#548) 2021-04-26 11:46:55 +03:00
Yoshinari Takaoka
f114783c6e changed deprecation function warning as of PHP 8.0.0. 2021-02-10 03:59:29 +09:00
Máté Kocsis
98df2cf9a9 Generate reflection methodsynopses based on stubs
We also document the new `$filter` parameter for the `ReflectionClass`
methods `::getConstants()` and `::getReflectionConstants()` and the
respective constants.

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-298.
2020-12-31 17:03:54 +01:00
Christoph Michael Becker
e41806c30b Revert revision(s) 351724 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Christoph Michael Becker
4754397753 Revert revision 351727 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351729 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 17:58:32 +00:00
Jakub Vrana
69bd53265b Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351727 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 15:12:46 +00:00
Jakub Vrana
c80da7c04a Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
George Peter Banyard
cdaea04215 Remove mention of PHP 5 in Language Reference section
This does not cover the OOP nor Error sections, but everything else should be covered

Closes GH-156

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351112 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-31 19:13:58 +00:00
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
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
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
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
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
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
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
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
Adam Harvey
dacbac0ab2 Add isVariadic() method documentation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335240 c90b9560-bf6c-de11-be94-00142212c4b1
2014-12-03 01:11:28 +00:00
Justin Martin
9f1bc3cef4 Clarify purpose of ReflectionParameter::getClass().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332198 c90b9560-bf6c-de11-be94-00142212c4b1
2013-11-26 06:54:14 +00:00
Joe Watkins
92a0880a97 #62642 wrong prototype in docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331803 c90b9560-bf6c-de11-be94-00142212c4b1
2013-10-13 17:25:01 +00:00
Jakub Vrana
24ec4b99df Document new Reflection methods
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330252 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-16 21:25:05 +00:00
Jakub Vrana
fcddfb2551 Link directly to magic methods
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@322136 c90b9560-bf6c-de11-be94-00142212c4b1
2012-01-12 15:01:15 +00:00
Jakub Vrana
d8b968e63c Document public constructors
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321901 c90b9560-bf6c-de11-be94-00142212c4b1
2012-01-08 05:33:58 +00:00
Richard Quadling
8b6d169424 Native EOL
Use consistent line terminator.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@317663 c90b9560-bf6c-de11-be94-00142212c4b1
2011-10-03 16:27:39 +00:00
Jakub Vrana
763ef8d4bb New reflection methods
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312894 c90b9560-bf6c-de11-be94-00142212c4b1
2011-07-04 10:52:59 +00:00
Daniel Egeberg
68c5267334 Fixed PHP bug #50798 (Unable to retrieve default value of argument of internal method with reflection) and added example to ReflectionParameter::getDefaultValue().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293765 c90b9560-bf6c-de11-be94-00142212c4b1
2010-01-20 11:41:23 +00:00
Torben Wilson
af4410a7e1 Normalized the sgml-default-dtd-file local-variable line for those
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Philip Olson
6c18ab3fe2 - Rewrote the reflection documentation as a book, and removed it from the OOP 5 section
- Many parts are still considered undocumented -- feel free to edit
- Some content stolen from here:
--- http://svn.php.net/viewvc/phpdoc/en/trunk/language/oop5/reflection.xml?revision=283798&view=markup
--- http://svn.php.net/viewvc/php/php-src/trunk/ext/reflection/tests/


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@287332 c90b9560-bf6c-de11-be94-00142212c4b1
2009-08-15 14:39:48 +00:00