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
Christoph Michael Becker
7de45151c2
Fix #73593 : constant visibility needs to be documented
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341146 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-25 23:09:57 +00:00
Maciej Sobaczewski
a9977adcc2
Whoopsy, wrong version
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341077 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-19 06:04:27 +00:00
Maciej Sobaczewski
ac6f979ca9
Add missing informations (also integrates user notes)
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341075 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-19 05:22:05 +00:00
Christoph Michael Becker
2de9c1a37b
Fix ##73287: Clone chaining feature
...
We also document that this is possible for `new` as of PHP 5.4.0.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340428 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-11 13:01:01 +00:00
Christoph Michael Becker
829b469622
Stick to American English
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340349 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-07 10:32:40 +00:00
Christoph Michael Becker
f6c86f60c8
Fix typo
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340338 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-06 11:54:36 +00:00
Christoph Michael Becker
bf5cfd002c
Improve example (patch provided by Joel James)
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340241 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-28 14:20:36 +00:00
Christoph Michael Becker
da36163bfb
Clarify behavior (patch provided by J.D. Grimes)
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340240 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-28 14:19:56 +00:00
Christoph Michael Becker
3e823762fd
Fix example (patch provided by Alexander Zhukov)
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340236 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-28 14:07:15 +00:00
Christoph Michael Becker
2e7b22f6c4
Fix typo (as noticed by netrilix at gmail dot com)
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339962 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-31 17:09:50 +00:00
Karoly Negyesi
31e3e09380
clarify trait use as
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339838 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-10 09:42:52 +00:00
Christoph Michael Becker
6937b29491
Class constants are allocated once per class
...
We try to get rid of the myth that class constants were allocated for each
instance, as claimed by user note 112286. Proof: <https://3v4l.org/3DKMC >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339824 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-09 11:32:38 +00:00