Yoshinari Takaoka
526b0a2fee
added union type link.
2021-07-29 02:00:36 +09:00
Sergey Panteleev
dc99afbc1f
Wrap use with literal tag
2021-06-25 13:49:36 +03:00
Christoph M. Becker
cc0198aafd
Fix typo in example
2021-05-26 12:03:49 +02:00
AlexandrErohin
c945294038
Added Static Properties example for Traits ( #488 )
2021-05-21 21:09:16 +03:00
Yoshinari Takaoka
c045b64078
added named arguments link.
2021-05-13 11:33:06 +09:00
Larry Garfield
6b509ccf78
Fold comments into interfaces page
...
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
Closes GH-594.
2021-05-12 16:52:12 +02:00
George Peter Banyard
5ccee0ae1c
Move iterable variance section to OOP section
2021-05-04 18:25:23 +01:00
AllenJB
1fb0ef23d7
Fix #80942 : Object iteration / Iterator: Replace duplicated examples with direct links
...
* Object iteration / Iterator: Replace duplicated examples with direct links to the appropriate sections and add cross-links.
Closes GH-517.
2021-04-20 11:28:39 +02:00
Juliette
4a21d28c5b
Language Ref/Traits: fix incorrect information about abstract methods ( #510 )
...
As of PHP 8.0, `abstract private` methods are allowed in `trait`s. `abstract public` method were previously already supported.
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2021-04-05 18:43:19 +02:00
Larry Garfield
069ce7647c
Document Stringable interface
2021-04-01 23:26:42 +02:00
Larry Garfield
3ddc88b836
Note changes in how private methods inherit. ( #481 )
2021-04-01 23:21:32 +02:00
Larry Garfield
77a77dbd29
Note that all visibilities of trait abstract methods are supported now
...
Closes GH-476.
2021-03-10 14:14:18 +01:00
Yoshinari Takaoka
8e7cce7b98
fixed Static resolution operator (::) link, point to paamayim-nekudotayim page.
2021-03-05 23:21:40 +09:00
George Peter Banyard
9ee9eccf45
Refactor OO section part 2
...
Some misses from the first time
Signed-off-by: Larry Garfield <larry@garfieldtech.com>
Closes GH-329
2021-03-04 17:06:22 -06:00
George Peter Banyard
871df69f47
Explain what consistitutes a more specific type
...
Closes GH-457
2021-02-18 18:00:47 +00:00
Rowan Tommins
99b8716337
Remove incorrect note about autoloading in interactive CLI
...
This was apparently added in response to a bug report against PHP
5.2 [https://bugs.php.net/bug.php?id=40775 ]. Testing suggests the
limitation was removed at least as long ago as 5.6, and probably
earlier.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes-GH444.
2021-02-11 23:28:27 +01:00
Tyson Andre
02f3bf5717
$this is not a **reference** to the called object.
...
It's the value of the called object.
Additionally, in php 7.1, it was no longer possible to reassign $this
indirectly through a reference.
Even in php 7.0, I'd think it would initially be more like a value
(that references can be created from) than
a reference, but I may be misunderstanding what this means or what $this
did in php 5 or older.
Closes GH-380.
2021-01-24 15:56:27 +01:00
George Peter Banyard
4317fec755
Update method signature section for PHP 7/8
...
Closes GH-321
2021-01-16 09:45:36 +00:00
George Peter Banyard
a9edd62d08
Refactor OO section
...
This mostly consists of removing PHP 5 mentions and rewritting the docs accordingly.
Reviewed by Christoph M. Becker <cmbecker69@gmx.de> and Anna Filina <afilina@gmail.com>
Co-authored-by: Anna Filina <afilina@gmail.com>
Closes GH-277
2021-01-13 04:00:03 +00:00
Kamil Tekiela
72880807af
Fix double full stop in several places.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352282 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-29 17:43:02 +00:00
George Peter Banyard
d152dc1021
Revert unintentional whitespace change
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352101 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-15 18:07:23 +00:00
George Peter Banyard
9f15bbc675
Sync with EN
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352099 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-15 17:58:42 +00:00
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