1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 15:52:15 +01:00
Commit Graph

42 Commits

Author SHA1 Message Date
Máté Kocsis
ec2fe9a592 Update ext/reflection role attributes (#1979) 2022-12-11 20:53:33 +01:00
HypeMC
46359240e6 Add invokeArgs Changelog
Closes GH-2052.
2022-12-11 12:19:30 +01:00
Sergey Panteleev
ee2e49869d [PHP 8.2] Add ReflectionFunction::isAnonymous and ReflectionMethod::hasPrototype methods (#1742)
Co-authored-by: George Peter Banyard <girgias@php.net>
2022-09-26 10:54:40 +01:00
George Peter Banyard
967b4787ba Remove return value section for Reflection constructors 2022-04-08 00:45:55 +01:00
Kamil Tekiela
ab58951f68 Remove &warn.undocumented.func; from Reflection
Removed from all the places where it wasn't stricly necessary.

Closes GH-1217.
2022-03-29 16:49:06 +02:00
Christoph M. Becker
7b6a20ed5d Reflection(Property|Method)::setAccessible() no longer has effect
Cf. <https://wiki.php.net/rfc/make-reflection-setaccessible-no-op>.
2021-11-26 21:03:53 +01:00
Christoph M. Becker
6f41560bf1 Fix #81065: Changes to Reflection modifiers not documented 2021-05-23 14:46:27 +02:00
Yoshinari Takaoka
d3191e2f3c replaced deprected warning with deprecated-removed one. 2021-05-02 14:18:03 +09:00
Christoph M. Becker
f7503d75d5 Fix typo
Pointed out by @GSokol.
2021-04-28 14:02:24 +02:00
Grigorii Sokolik
e504d84881 Add note for passing references to invoke methods.
During running unit tests for a private method I faced the lack of
documentation about how to pass arguments by references through `invoke`
method. (See https://bugs.php.net/bug.php?id=80991) I'd like to add
notes to clarify the workaround to make it easier for others.

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

Closes GH-550.
2021-04-28 11:34:43 +02:00
Anna Filina
cc422ba8c7 Fix #55026: Document access to protected/private members using reflection
Closes GH-325.
2021-01-12 12:57:40 +01:00
Christoph M. Becker
8217228b33 Restore overloaded signature of reflectionmethod::__construct()
Still not great, but that constructor is a mess.
2021-01-03 00:32:27 +01:00
Christoph M. Becker
fcb74e8f48 Remove duplicate constructorsynopsis 2021-01-02 16:55:35 +01: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
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
Christoph Michael Becker
9e0f03ac35 Proper variadics instead of pseudo variadics
We markup variadic parameters with the `rep=repeat` standard DocBook
attribute of `<methodparam>`, and use proper variable names instead of
using the old pseudo variable name `...`.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351129 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 11:17:26 +00:00
Christoph Michael Becker
72502df5f5 ReflectionMethod accepts string|object, not mixed
Based on a patch contributed by Benjamin Morel <benjamin.morel@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351060 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-29 17:14:02 +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
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
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
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
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
Joe Watkins
fd4b8d965b #65349 fix prototype
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331655 c90b9560-bf6c-de11-be94-00142212c4b1
2013-10-03 06:47:00 +00:00
Jakub Vrana
87cd7b7508 ReflectionMethod with a single parameter
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330272 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-17 19:42:57 +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
Jakub Vrana
3429fc4d77 Link call_user_func
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321888 c90b9560-bf6c-de11-be94-00142212c4b1
2012-01-07 23:10:41 +00:00
Jakub Vrana
10f0291568 invoke* methods
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321777 c90b9560-bf6c-de11-be94-00142212c4b1
2012-01-05 05:55:06 +00:00
Jakub Vrana
8c6d47907a Improve Reflection
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321705 c90b9560-bf6c-de11-be94-00142212c4b1
2012-01-03 06:12:37 +00:00
Richard Quadling
a80530edfb Fixed example. Fixes bug#55869
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@317887 c90b9560-bf6c-de11-be94-00142212c4b1
2011-10-08 09:02:50 +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
Mike Ford
fa6e196973 Improve English: "in case" does not mean "if" (part 1).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@313913 c90b9560-bf6c-de11-be94-00142212c4b1
2011-07-29 10:46:17 +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
Peter Cowburn
9425da2dfa typofix (dittographies)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308547 c90b9560-bf6c-de11-be94-00142212c4b1
2011-02-21 21:42:02 +00:00
Joris van de Sande
8ce9ec16a2 - Added description for ReflectionMethod class constants
- Corrected example titles, replaced 'ReflectionFunction' by 'ReflectionMethod' for a few ReflectionMethod methods

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301620 c90b9560-bf6c-de11-be94-00142212c4b1
2010-07-27 18:48:17 +00:00
Joris van de Sande
a917da5674 - Added parameter and return value documentation for ReflectionMethod constructor
- Updated documentation and added examples for the following ReflectionMethod methods: export, getDeclaringClass, getPrototype, invoke, invokeArgs, isDestructor, __toString

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301478 c90b9560-bf6c-de11-be94-00142212c4b1
2010-07-22 20:03:49 +00:00
Joris van de Sande
587df982a2 - Documented/fixed arguments for ReflectionMethod class methods: invoke and invokeArgs
- Documented exceptions for ReflectionMethod class methods: invoke and invokeArgs

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301456 c90b9560-bf6c-de11-be94-00142212c4b1
2010-07-21 21:38:42 +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
Sebastian Bergmann
aa33483224 Add documentation stub for ReflectionMethod::setAccessible().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288395 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-17 05:02:35 +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