198 Commits

Author SHA1 Message Date
Victor
f5a677b8fd [skip-revcheck] fix: typo in class-alias determiner error (#3484) 2024-07-07 14:56:10 +01:00
Mikhail Alferov
194d020921 class-alias.xml: remove extra parentheses (#3311) 2024-04-16 10:58:17 +01:00
Mikhail Alferov
9a8a05e013 class-alias.xml: added note and change log for an internal classes (#3285) 2024-04-12 16:18:05 +01:00
Leonardo Lara Rodrigues
7cec82fec2 get_parent_class: fix to self-reference (#3195) 2024-02-20 01:16:08 +03:00
Sergey Panteleev
4f36c26a72 [PHP 8.3] Update get_class and get_parent_class (#3186)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-02-19 00:11:20 +00:00
Kamil Tekiela
a4fb7f5931 Fix return value of property_exists (#3152) 2024-01-29 13:38:17 +00:00
Kamil Tekiela
7d126f6cef Change note to normal para in get_parent_class (#3134)
Drive-by grammar fixes.
2024-01-23 13:53:36 +00:00
Mikhail Alferov
fd65805e83 Improve wording and markup of is_a() (#3128)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-01-23 13:34:52 +00:00
Alexandre Daubois
c992cd3eb5 Add a note about lowercase declared class alias (#2608)
Co-authored-by: George Peter Banyard <girgias@php.net>
2023-07-28 03:21:44 +01:00
George Peter Banyard
fe33a5685e Sync wording between get_class() and get_parent_class() 2023-07-10 14:20:19 +01:00
Niels Dossche
164b1547cf Corrections to get_called_class() (#2568)
Amend return value section and add an error and changelog section to document PHP 8.0 behavioural changes.
2023-07-10 09:43:58 +01:00
沈唁
2428508fac Use supertype instead of parent in is_a function (#2238) 2023-05-09 19:26:00 -05:00
KapitanOczywisty
42bd1bfed3 Replace links to __autoload (#2430) 2023-04-16 21:31:31 +01:00
jpslimmen2
5581b0ca66 Classes should be written in uppercase (#2344) 2023-03-06 15:02:07 +00:00
othercorey
11960da656 Drop get_declared_traits() returns null description
Closes GH-2191.
2023-01-15 11:36:13 +01:00
Benjamin Morel
944af3a79d is_a() works with interfaces, too (#506)
Co-authored-by: Anna Filina <afilina@gmail.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Co-authored-by: George Peter Banyard <girgias@php.net>
2022-12-22 18:00:24 +00:00
蝦米
59d305435c Add innerlink for enum (#2040) 2022-12-05 23:55:13 +00:00
Markus Staab
2761e65ea2 Mention that is_a() is also working on interface class-strings
See https://3v4l.org/HmGbd

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

Closes GH-1732.
2022-09-01 18:03:15 +02:00
Sergey Panteleev
5ea9b57cba Fix example output (#1783)
Closes php/doc-ru#418
2022-08-30 19:43:17 +03:00
Christoph M. Becker
f004f576e7 Fix GH-1575: get_parent_class may return false 2022-05-07 13:20:49 +02:00
魔王卷子
3a1b673c5f Fix wrong parameter name
Closes GH-1404.
2022-02-13 14:34:19 +01:00
Christoph M. Becker
de99fc78de Don't document ZPP failure return values
Cf. <https://github.com/vimeo/psalm/issues/7478>.
2022-02-01 23:14:29 +01:00
Kamil Tekiela
d6fbec8b21 get_class does not return false (#1169) 2021-12-29 14:01:44 +00:00
Máté Kocsis
fa575325c8 Fix a few enum function/method signatures (#1207) 2021-12-16 12:59:13 +01:00
Christoph M. Becker
d332b5ae70 Uninitialized type properties are silently discarded on array cast
Cf. <https://bugs.php.net/81629>.
2021-11-17 15:15:09 +01:00
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
Sergey Panteleev
6b739fa2ec Add get_mangled_object_vars description (#953)
Co-authored-by: George Peter Banyard <girgias@php.net>
2021-09-17 22:55:42 +03:00
Yoshinari Takaoka
363a506c6d added get_debug_type reference.
because get_class function is referenced from get_debug_type[*1].

[*1] https://www.php.net/manual/en/function.get-debug-type.php
2021-07-26 23:56:31 +09:00
Kamil Tekiela
04df229c53 Fix remaining usages of __autoload (#752) 2021-07-11 17:00:43 +01:00
Kamil Tekiela
6fbc82c739 Overhaul example for class_exists
Closes GH-749.
2021-07-03 12:55:49 +02:00
Kamil Tekiela
7783d8198a Remove PHP 4 constructor from get_parent_class example
Ckises GH-748.
2021-07-01 23:28:54 +02:00
Christoph M. Becker
c9bc21cb73 Fix #81218: get_object_vars returns parent class parameters
Besides there are no "class parameters", parent properties are returned
if in scope.
2021-07-01 19:09:53 +02:00
Sergey Panteleev
6846ebb4e3 Fix issues in classobj directory
Part of #658
2021-06-10 16:30:21 +03:00
Larry Garfield
4ff15172da Fold in comments for get_object_vars()
Closes GH-595.
2021-05-24 18:09:54 +02:00
Máté
c44475e1fa Generate methodsynopses based on stubs for Zend functions and methods
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-168.
2021-05-22 16:48:16 +02:00
Sergey Panteleev
f9c4a68ef4 Removed references to PHP 5, PHP 7.0 (#548) 2021-04-26 11:46:55 +03:00
Sergey Panteleev
a0ae28d3bc Removed references to PHP 5, PHP 7.0 (#545) 2021-04-24 20:01:17 +03:00
Yoshinari Takaoka
d88a13cd9e __autoload was deleted as of PHP 8.0.0.
already documented in appendices/migration80/incompatible.xml.
2021-01-24 23:50:29 +09: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
a9a9172aee Reflect PHP 8 typehint in method_exists
This type specification is also appropriate for PHP 7.

Based on patch contributed by Ian Littman <iansltx@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351409 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-17 12:05:27 +00:00
Christoph Michael Becker
b687e06cb0 call_user_method(_array) is removed as of PHP 7.0.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350985 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-25 14:20:38 +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
be5b0f33a1 Remove more changelog entries, mostly from PHP 5.1 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350653 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:45:57 +00:00
Christoph Michael Becker
53bdffa6b9 Removed some of the PHP5 changelogs
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350645 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 12:32:19 +00:00
Christoph Michael Becker
e4bb74f6ed Fix #79474: get_declared_classes Wrong loading order Inheritance
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349660 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-15 08:50:00 +00:00
Christoph Michael Becker
00ff0a3a0c Fix #78954: get_object_vars not returning typed empty properties
Untyped properties default to NULL, so this sentence is superfluous for those.
Unitialized typed properties are not included in the result, so the sentence is
plain wrong for those.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348498 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-12 17:18:46 +00:00
Christoph Michael Becker
d49b5c788d Use new style constructor
Patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347286 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-19 11:14:48 +00:00