Commit graph

220 commits

Author SHA1 Message Date
Larry Garfield
9fe8103520
Document enumerations
Co-authored-by: Yoshinari Takaoka <mumumu@mumumu.org>
Co-authored-by: Sergey Panteleev <sergey@php.net>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-960.
2021-10-29 01:14:57 +02:00
沈唁
3d0fccf51c
Fix typo (#1049) 2021-10-26 12:58:37 +08:00
Kim Hallberg
327a44719a
Fix 81385: ReflectionProperty::isPromoted() is missing from documentation
Closes GH-937.
2021-10-20 11:11:30 +02:00
Sergey Panteleev
9ddb781270
[PHP 8.1] Add ReflectionIntersectionType description (#1027) 2021-10-19 07:42:27 +03:00
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
Milan Davídek
9f915c8621
ReflectionFunctionAbstract is abstract
Closes GH-954.
2021-09-27 14:53:56 +02:00
Máté Kocsis
ab57ab6849
Mark a few interfaces as oointerface rather than ooclass (#818) 2021-07-30 17:01:16 +02:00
Christoph M. Becker
b54e6443e2
Fix #78785: ReflectionType page should mention subclasses 2021-07-30 15:10:59 +02:00
jrfnl
67a54da71f ReflectionProperty: fix a few references to wrong class name(s)
These methods only exist on the `ReflectionProperty` class, not on `ReflectionClass`.
2021-07-02 13:38:11 +01:00
othercorey
b1a15df084
Fix whether misspelling (#705)
* Fix whether misspelling

* Update isrepeated.xml

Co-authored-by: 沈唁 <52o@qq52o.cn>
2021-06-20 14:02:21 +08:00
George Peter Banyard
e1eff0924f Fix section order issues in Reflection extension
Part of #658
2021-06-06 18:03:03 +01: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
Christoph M. Becker
6f41560bf1
Fix #81065: Changes to Reflection modifiers not documented 2021-05-23 14:46:27 +02:00
Sergey Panteleev
184f3f7bd4
Remove PHP 5, 7 references (#565) 2021-05-12 14:49:16 +03: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
Yoshinari Takaoka
2cf7e8823c added missing [deprecated|removed] info of reflector class. 2021-05-02 14:13:57 +09:00
Yoshinari Takaoka
202724dcac Added PHP 8 into versions.xml for reflection based on stubs. 2021-04-30 16:49:54 +01:00
Christoph M. Becker
ae9210b472
Fix typo 2021-04-29 12:13:07 +02: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
Sergey Panteleev
f9c4a68ef4
Removed references to PHP 5, PHP 7.0 (#548) 2021-04-26 11:46:55 +03:00
Sergey Panteleev
5fabd07880
Removed Changelog entries for PHP 5, PHP 7.0 (#543) 2021-04-22 17:52:58 +03:00
Yoshinari Takaoka
f114783c6e changed deprecation function warning as of PHP 8.0.0. 2021-02-10 03:59:29 +09: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
George Peter Banyard
a2afb71b63 Extend ReflectionProperty::hasDefaultValue() example
Closes GH-295.
2021-01-08 00:14:21 +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
c40f07c937 Fix #80247: ReflectionType does not have an isBuiltin() method
Closes GH-273.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352224 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-27 23:23:02 +00:00
Christoph Michael Becker
565b5f3de9 Fix example output for PHP 7.0.0 and up
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352077 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-14 20:10:29 +00: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
Christoph Michael Becker
831603509b Fix return type
This integrates user note 125527.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351494 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-22 13:32:41 +00:00
Christoph Michael Becker
91de67290f Fix #78707: ReflectionClass::implementsInterface - incomplete documentation
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351217 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-04 11:40:49 +00:00
Christoph Michael Becker
86e6094e86 Use canonical type names
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +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
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
d960106581 Document ReflectionProperty::getDefaultValue and ::hasDefaultValue
Patch provided by Benjamin Eberlei <kontakt@beberlei.de>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351090 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-30 16:38:02 +00:00
Christoph Michael Becker
41445b3d77 Mark up nullable types as union types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351076 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-30 10:47:17 +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
7f569e1f17 Remove more changelog entries, mostly from PHP 5.3 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +00:00
Christoph Michael Becker
3fc4586f54 Add missing changelog entry for deprecated ReflectionType::__toString()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350642 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 11:35:22 +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
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