Commit graph

208 commits

Author SHA1 Message Date
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
Kamil Tekiela
6f11457f11
New examples for classes (#750)
Co-authored-by: Anna Filina <afilina@gmail.com>
2021-08-05 21:37:30 +01: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
496d3f708e Added PHP 8 into versions.xml for classobj based on stubs.
Closes GH-395.
2021-01-24 15:58:28 +01: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
0841cced6c Fix #79747: __autoload not labeled as "Deprecated"
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350087 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-29 07:17:39 +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
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
Christoph Michael Becker
a1060b5268 Fix first parameter docs
Patch provided by irker.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346082 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-27 10:56:41 +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
Jakub Vrana
7418592d82 Capitalize <refpurpose>
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343887 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 15:24:28 +00:00
Christoph Michael Becker
970d9b2e54 Fix #75789: Add class_parents to see also
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343810 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-10 14:03:01 +00:00
Pieter Hordijk
16f192be4e Fixed see also section
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343260 c90b9560-bf6c-de11-be94-00142212c4b1
2017-10-19 13:55:22 +00:00
Pieter Hordijk
b4030d009b Adds reference to trait_exists function to the get_declared_traits page.
-- 
Provided by anonymous 86497 (potherca@hotmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343250 c90b9560-bf6c-de11-be94-00142212c4b1
2017-10-16 18:46:49 +00:00
Christoph Michael Becker
2a6fc6a1d5 Functions do not return types, but rather values
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343199 c90b9560-bf6c-de11-be94-00142212c4b1
2017-10-06 14:01:59 +00:00
Andrey Andreev
7edc885311 Document https://wiki.php.net/rfc/get_class_disallow_null_parameter
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342130 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-14 12:31:33 +00:00
Andrey Andreev
028513e94b Document PHP 7.2 deprecations as the result of https://wiki.php.net/rfc/deprecations_php_7_2
Also, simplify the first paragraph of 'Traditional assertions' in assert() docs

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342126 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-14 11:30:59 +00:00
Andrey Gromov
fd997f01ab Change constructor from PHP4 to modern style in example.
By naitsirch.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341814 c90b9560-bf6c-de11-be94-00142212c4b1
2017-01-30 09:55:32 +00:00
Jean-Sebastien Hedde
91e0557e2f 1) Adds clarity on what is returned when using get_class() with objects that are instances of namespaced classes
2) Add example of qualified namespace return value

-- 
Provided by anonymous 77227 (amo.chohan@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341499 c90b9560-bf6c-de11-be94-00142212c4b1
2016-12-28 12:23:11 +00:00
Christoph Michael Becker
62d53f70bd Fix #73623: Example mentions deprecated PHP 4 OO naming style for constructors
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341232 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-30 11:42:28 +00:00
Fábio Luciano Nogueira de Góis
24f1c77edb removing unnecessary spaces
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339407 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-19 21:26:08 +00:00
Adam Harvey
74ad648bc8 Improve removal warnings for call_user_method*.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338430 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-08 01:35:24 +00:00