Commit graph

502 commits

Author SHA1 Message Date
Christoph Michael Becker
4528db2d91 Fix #80497: Incorrect example #11 for ::class on OOP The Basics page
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351963 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-09 10:49:23 +00:00
Christoph Michael Becker
025f2d34cc Document nullsafe operator
Closes GH-244.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351735 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 23:09:30 +00:00
Christoph Michael Becker
370bb99d28 Document the ::class constant on objects
Also, improve ::class description based on comments.

Closes GH-239.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351711 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-27 23:40:12 +00:00
Larry Garfield
a6338d7477 Update constructor documentation to include constructor promotion.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351474 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-21 19:50:13 +00:00
George Peter Banyard
a9a6224ca9 Split type declarations into their dedicated page
Remove obsolete OOP5 TypeHinting page
Document union types

Closes GH-174

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351365 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-12 18:39:19 +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
Christoph Michael Becker
ee713929a5 Fix #70702: Documentation missing to explain unexpected optimisation behaviour
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350429 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-31 11:18:06 +00:00
Peter Cowburn
a43655118b more details for typed properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350015 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-08 20:49:01 +00:00
Christoph Michael Becker
e1438a020b Document the __serialize/__unserialize magic in PHP 7.4
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349590 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-01 23:15:30 +00:00
Tiffany Taylor
84b2eca180 Remove "nom noms" from eat method in Dog class
(thanks salathe)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349392 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-12 15:40:27 +00:00
Tiffany Taylor
62be58faa7 Formalize wording in variance page, remove any wording that speaks to the audience
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349390 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-12 14:36:14 +00:00
George Peter Banyard
8e00768efc Update doc in regards to being able to throw exceptions in __toString().
-- 
Provided by anonymous 101201 (Arek Pietrzyk)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349020 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-26 10:20:34 +00:00
Peter Cowburn
a8cc01634c k
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348562 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-17 20:24:03 +00:00
Peter Cowburn
a2063d1336 Add oop5 section for covariance and contravariance with examples.
Patch by Tiffany Taylor (credit also to Mark Randall for help with examples)



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348547 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-16 20:40:29 +00:00
George Peter Banyard
0f9d5fdc88 Typo, provided by an anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348385 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-01 12:59:19 +00:00
Christoph Michael Becker
9b5b5b7285 Fix #78464: Abstract may not or cannot be instantiated?
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347912 c90b9560-bf6c-de11-be94-00142212c4b1
2019-09-01 09:25:34 +00:00
George Peter Banyard
1319917d0f Added links, entities, and some slight rewording.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347744 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-14 00:34:55 +00:00
George Peter Banyard
b41b0af93b Typos and sentence structure.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347742 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-13 23:45:44 +00:00
George Peter Banyard
dfb5bfc4f5 Partial fix to Doc Bug #77176
Added changes to PHP's OOP model starting from PHP 7.0.
Hope I didn't miss anything and phrasing may be improved but based on the previous format of changelog. This may be (should?) need some tweaks, please advise.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347741 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-13 20:18:58 +00:00
Karoly Negyesi
0c97611503 expand overloading docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347517 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-30 20:13:02 +00:00
George Peter Banyard
6187696fb4 Updated REGEX of valid symbols in various instances
Fixes Doc Bug #75814

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347269 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-17 15:17:19 +00:00
Kalle Sommer Nielsen
1ae887f71c Class constants may not be declared as final either
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346977 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-07 12:05:13 +00:00
Pasindu De Silva
cb1c93099e Parentheses and argument list optional with new operator
https://bugs.php.net/bug.php?id=77426

Submitted by girgias

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346784 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-10 23:58:40 +00:00
Pasindu De Silva
51fc161bc0 Improved interface doc
https://bugs.php.net/bug.php?id=73259

Submitted by girgias

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346783 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-10 23:42:35 +00:00
Christoph Michael Becker
71b5a8fe91 __autoload() is already deprecated
Based on a patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346661 c90b9560-bf6c-de11-be94-00142212c4b1
2019-01-28 10:32:17 +00:00
Christoph Michael Becker
8413d3c303 Fix #65042: Protected, private __invoke() magic method raises Warning
Patch provided by girgias.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346507 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-31 19:59:38 +00:00
Christoph Michael Becker
796ebb7fa1 Fix typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346323 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-13 18:06:56 +00:00
Christoph Michael Becker
9093ce1bc6 More PHP 4 related content removal
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346157 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-03 17:41:59 +00:00
Christoph Michael Becker
7ee0da6a02 Fix #75449: Ignored return type for abstract methods, defined in traits
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346114 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-28 12:41:43 +00:00
Pieter Hordijk
b08540046e Fixed typos in ::class description
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345616 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-09 16:27:09 +00:00
Christoph Michael Becker
db2ac1420f Use magic constant
Patch provided by Nicolas Lefevre.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345581 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-01 10:57:31 +00:00
Christoph Michael Becker
f559b71c79 Improve wording
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345055 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-25 14:50:18 +00:00
Christoph Michael Becker
dea92cb699 Fix typo
Patch provided by Elliot Ward.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344560 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-25 13:50:08 +00:00
Christoph Michael Becker
0fe00e3574 Minor doc improvements
Patches provided by anonymous users.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344469 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-09 12:44:59 +00:00
Pedro Magalhães
852f4696f1 Consistently use 4 spaces for tabs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344091 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-30 09:58:53 +00:00
Jakub Vrana
64642ea9c3 Fix ID of unserialize_callback_func INI entry
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344075 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 20:43:44 +00:00
Andrey Gromov
ead385635a fix by anon
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343316 c90b9560-bf6c-de11-be94-00142212c4b1
2017-10-28 08:25:00 +00:00
Pieter Hordijk
5e40a5a43d Added missing PHP open tags to examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343230 c90b9560-bf6c-de11-be94-00142212c4b1
2017-10-11 13:20:05 +00:00
Christoph Michael Becker
7c0b830e98 Fixed bug #75202 (Interfaces shouldn't be able to define a constructor)
We document that interfaces allow constructors to be declared.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343082 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-13 15:07:42 +00:00
Christoph Michael Becker
70fb482c26 Reverted revision(s) 337719 from phpdoc/en/trunk/language/oop5/visibility.xml:
Protected members cannot be accessed by parent classes

-- 
Provided by anonymous 62572 (tunght13488@gmail.com)
........

If we like it or not, that's how it is. See also bug #74932.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342692 c90b9560-bf6c-de11-be94-00142212c4b1
2017-07-21 18:40:37 +00:00
Christoph Michael Becker
cc8ca60530 PHP 5 behaved slightly different
r342129 only documented the PHP 7 behavior, but the manual is supposed
to describe PHP 5, too.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342154 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-17 13:36:48 +00:00
Maciek Sokolewicz
93b9a05101 Documented changes in E_STRICT throwing as of PHP 7.0 for compatible properties in traits (thanks for mentioning this, Sherif)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342129 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-14 12:18:23 +00:00
Maciek Sokolewicz
e4add76743 Documents the issue described in bug 62537.
-- 
Provided by Pedro Magalhães (mail@pmmaga.net)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342111 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-13 18:35:13 +00:00
Christoph Michael Becker
6a8863a5a9 Fix typo
Patch provided by savdeep singh.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341919 c90b9560-bf6c-de11-be94-00142212c4b1
2017-02-17 18:05:40 +00:00
Christoph Michael Becker
b90505533d Fix typos
Patches provided by anon users.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341799 c90b9560-bf6c-de11-be94-00142212c4b1
2017-01-28 18:33:56 +00:00
Christoph Michael Becker
38d634a6b5 Fix #66894: Taking old-style-constructor instead of unified one
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341633 c90b9560-bf6c-de11-be94-00142212c4b1
2017-01-08 16:25:08 +00:00
Kalle Sommer Nielsen
fdebe6ee64 Fix example title
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341632 c90b9560-bf6c-de11-be94-00142212c4b1
2017-01-08 15:53:43 +00:00
Kalle Sommer Nielsen
530370df71 Improve the docs for ::class a little, by making notes in other parts of the docs about it
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341608 c90b9560-bf6c-de11-be94-00142212c4b1
2017-01-07 09:30:22 +00:00
Christoph Michael Becker
5186944b5a Fix #73779: typo with different semantics on visibility page
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341422 c90b9560-bf6c-de11-be94-00142212c4b1
2016-12-19 16:55:14 +00:00