1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-27 01:02:08 +01:00
Commit Graph

271 Commits

Author SHA1 Message Date
Yoshinari Takaoka
519d86be33 fixed refpurpose of ReflectionFunctionAbstract::isStatic 2023-01-03 10:26:05 +09:00
Christoph M. Becker
170218df33 Fix GH-2136: ReflectionFunction has isStatic, but missing in docs 2023-01-02 17:35:15 +01:00
Máté Kocsis
3fc56d76de List inherited constructors on the class synopsis pages (#2090) 2022-12-28 15:51:40 +01:00
Christoph M. Becker
071a588364 Fix xpointer expressions
When removing the `not()` operator, some closing parentheses have been
overlooked, which resulted in broken xpointer expressions.
2022-12-13 12:13:33 +01:00
Máté Kocsis
75b45dfe65 Reflector should use the new Stringable role attribute value 2022-12-13 10:58:53 +01:00
Máté Kocsis
7f6236d76d Add role attribute for ReflectionClass::isReadOnly 2022-12-11 22:06:28 +01:00
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
Yoshinari Takaoka
a4f0588234 added ReflectionClass::isReadOnly documentation. (#2006)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2022-11-14 22:53:43 +09:00
Máté Kocsis
1a4777d80c Document ReflectionClass::IS_READONLY (#2001)
Co-authored-by: George Peter Banyard <girgias@php.net>
2022-11-14 11:31:44 +01:00
Máté Kocsis
f7d5242bad Update the return type of ReflectionEnum::getBackingType() (#1960) 2022-11-07 08:53:55 +01:00
Máté Kocsis
54d585c09b Sync ext/reflection class constants with stubs - part 1 (#1944) 2022-11-04 19:13:52 +01:00
Máté Kocsis
d6aee4a500 Sync a few manual pages with the stubs (#1936) 2022-11-04 13:30:04 +01:00
Christoph M. Becker
7c30fe36eb Fix GH-1919: Doc comment must start with /** followed by whitespace
While we're at it, we also fix the indentation of the example to match
common PHP formatting rules.
2022-10-27 18:14:28 +02:00
魔王卷子
e23a1375a5 Fix example
Closes GH-1910.
2022-10-23 16:23:14 +02: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
Christoph M. Becker
12dce4f0cc ReflectionProperty::(g|s)etValue() no longer needs ::setAccessible()
This integrates user note 127516.
2022-09-07 12:15:39 +02:00
Bob Magic II
38e6b75eee Fix ReflectionAttribute::isrepeated() description
The method does not return true if the attribute is flagged repeatable, only if it really has been repeated.

Closes GH-1772.
2022-08-26 14:08:57 +02:00
Christoph M. Becker
4695130681 Fix GH-1709: ReflectionClassConstant::isEnumCase() is not documented 2022-07-29 17:36:25 +02:00
Sergey Panteleev
38f5bb6cc0 [PHP 8.1] Add get/hasTentativeReturnType functions (#1615)
Closes #1614

Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2022-06-06 16:07:48 +03:00
Ollie Read
8d2b545eef Add missing documentation for the ReflectionClass::getAttributes method
Closes GH-1539.
2022-05-03 13:08:20 +02:00
Sergey Panteleev
ed8eead5c4 [PHP 8.1] Add ReflectionFunctionAbstract::getClosureUsedVariables (#1032)
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
2022-04-28 09:58:00 +03:00
Ollie Read
a7e787f40f Add missing constant definition ReflectionAttribute::IS_INSTANCEOF
Closes GH-1537.
2022-04-22 17:54:17 +02: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
Sammy
210b5020c0 Add trailing semicolon to getDocComment
Although this is valid PHP, other functions' examples in the class (e.g. `getDefaultProperties` and `getConstructor`) contain this trailing semicolon.

Fixes GH-1432
Closes GH-1486.
2022-03-28 14:09:48 +02:00
Anton
2e7c5de96f Fix "see also" for ReflectionFunction::__toString (#1473) 2022-03-21 15:12:38 +00:00
the-toster
a416cd2c01 ReflectionClass::isEnum method (#1390) 2022-02-14 13:58:13 -06:00
Máté Kocsis
302039194a Add some missing ext/spl method includes (#1294) 2022-01-04 11:47:29 +01:00
Máté Kocsis
6803b3c62d Generate various class synopses from stubs - part 1 (#1241) 2021-12-23 14:22:05 +01:00
Máté Kocsis
0f2aaf1898 Generate ext/reflection class synopses from stubs - part 4
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-1139.
2021-12-17 16:08:57 +01:00
Máté Kocsis
cb30efc532 Generate ext/reflection class synopses from stubs - part 5
Closes GH-1140.
2021-12-17 15:53:15 +01:00
Máté Kocsis
1c1619047e Fix a few ext/reflection return types (#1208) 2021-12-16 14:28:35 +01:00
Máté Kocsis
fa575325c8 Fix a few enum function/method signatures (#1207) 2021-12-16 12:59:13 +01:00
Yoshinari Takaoka
49eff29e8e replaced class with method.
Because these classes are NOT originally `final` class in PHP 8.0.
https://github.com/php/php-src/blob/PHP-8.0/ext/reflection/php_reflection.stub.php
2021-12-03 00:51:27 +09:00
Aaron Piotrowski
1f7a0e4af8 Fiber documentation
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Sergey Panteleev <sergey@php.net>
Co-authored-by: Fabien Villepinte <fabien.villepinte@gmail.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-1096.
2021-12-02 16:11:55 +01:00
Máté Kocsis
ae0b8c5502 Inherited constants were unintentionally removed from ReflectionEnumUnitCase class synopsis page
Closes GH-1170.
2021-12-02 13:26:25 +01:00
Sergey Panteleev
83b6431800 [PHP 8.1] Remove final modifier from __clone() (#1131)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-12-02 15:16:08 +03:00
Máté Kocsis
00b3ebfa68 Generate ext/reflection class synopses from stubs - part 3
Closes GH-1138.
2021-12-02 13:07:26 +01:00
Alexander M. Turek
a324fcef80 Add ReflectionIntersectionType
… to the list of ReflectionType subtypes

Closes GH-1166.
2021-12-01 15:26:16 +01:00
Yoshinari Takaoka
5d1673b7a0 [PHP 8.1] Document final class constants. (#1041)
* Document final class constant.

* use singular form.

* Update language/oop5/constants.xml

Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>

* Update language/oop5/constants.xml

Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>

Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
2021-11-29 15:06:49 -06:00
Fabien Villepinte
537e1dfad9 Add missing final modifier
Closes GH-1152.
2021-11-29 13:47:04 +01:00
Yoshinari Takaoka
d73c3dcbd6 [PHP 8.1] Document readonly properties. (#1047)
* [PHP 8.1] Document readonly properties.

* added ReflectionProperty::isReadOnly method.

* Apply suggestions from code review

Co-authored-by: Sergey Panteleev <sergey@php.net>

* Update language/oop5/properties.xml

Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>

* Update language/oop5/properties.xml

Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>

* added link to readonly-properties docs.

Co-authored-by: Sergey Panteleev <sergey@php.net>
Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
2021-11-27 13:00:13 -06: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
Máté Kocsis
8208e01b8c Add docs for ReflectionReference::__construct() (#1137) 2021-11-25 23:01:33 +09:00
Yoshinari Takaoka
31979c1ec7 fixed XPointer evaluation failed warning.
This warning is emitted because RefrectionReference has no constructor page.

 XPointer evaluation failed: #xmlns(db=http://docbook.org/ns/docbook)
 xpointer(id('class.reflectionreference')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])
done.
2021-11-23 23:04:39 +09:00
Máté Kocsis
8aec847009 Generate ext/reflection class synopses from stubs - part 2 (#1121) 2021-11-23 14:17:07 +01:00
Máté Kocsis
b0c0d6bcd9 Generate ext/reflection class synopses from stubs - part 1 (#1120) 2021-11-23 14:15:35 +01:00
Jacob Dreesen
59154119e9 Clarify purpose of ReflectionType
Closes GH-1098.
2021-11-15 16:05:52 +01:00
Yoshinari Takaoka
6e6aa01003 fixed yet another example title mistake. 2021-10-29 22:00:10 +09:00