Christoph Michael Becker
b95d28e6ec
Fix return types
...
Functions which return false on failure should state that in their
signature as well.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351135 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:52:35 +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
eb0bd932eb
Replace "number" type with built-in types
...
There is really no need for a pseudo type here; we can either use the
`int|float` union, or spell out the abbreviation, instead.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351123 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 09:17:09 +00:00
George Peter Banyard
3f8411752b
Remove SSL context options which have been removed in PHP 7.0,
...
This is a left-over/mishap from the previous large commit
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351118 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 00:35:31 +00:00
George Peter Banyard
cdaea04215
Remove mention of PHP 5 in Language Reference section
...
This does not cover the OOP nor Error sections, but everything else should be covered
Closes GH-156
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351112 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-31 19:13:58 +00:00
Christoph Michael Becker
d546ed681a
array|object is no longer a special pseudo-type
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351077 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-30 10:49:18 +00:00
Christoph Michael Becker
41445b3d77
Mark up nullable types as union types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351076 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-30 10:47:17 +00:00
Christoph Michael Becker
53242ee662
Properly markup union types
...
Since r350738 added support for union types to our DocBook DTD, we
should use it.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351075 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-30 10:45:25 +00:00
Christoph Michael Becker
5b05e0c7e6
Remove confusing and apparently unrelated lines from example
...
This integrates user note 125445.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350957 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-20 13:46:53 +00:00
George Peter Banyard
ca309ab744
Add version information to methods of Error
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350937 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-18 13:55:12 +00:00
Christoph Michael Becker
dec1f8445a
Remove safe_mode related information
...
Sorry, translators, for breaking your builds again.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350871 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-13 22:07:26 +00:00
Christoph Michael Becker
83d6523933
Link to __serialize()/__unserialize() from Serializable
...
Those magic methods were introduced in php 7.4 to resolve some of the
limitations with __wakeup() or Serializable.
Patch contributed by Tyson Andre <tysonandre775@hotmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350854 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-12 21:48:27 +00:00
Christoph Michael Becker
3e0354fcfc
Fix #80191 : Deprecated example
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350797 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-06 11:52:01 +00:00
Christoph Michael Becker
80872147aa
Get rid of "callback" types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350788 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-06 09:11:05 +00:00
Christoph Michael Becker
e293d971f5
Clarify assignability of $this
...
Cf. <https://wiki.php.net/rfc/this_var >.
Integrates user notes 107080 and 123802.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350719 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-30 15:32:28 +00:00
Christoph Michael Becker
e61d2217d5
Document BC breaking change in handling of incoming cookie names
...
CVE-2020-7070
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350707 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-29 10:30:38 +00:00
Christoph Michael Becker
e443388d42
Remove info about SAPIs which are removed as of PHP 7.0.0
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350661 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 16:56:25 +00:00
Christoph Michael Becker
468e71623d
Fix #80110 : object with __invoke method is considered callable
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350580 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-17 10:11:40 +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
Christoph Michael Becker
4d93300938
Fix #80021 : include/require documentation does not mention warnings for missing files
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350405 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-28 08:22:46 +00:00
Christoph Michael Becker
fe3066e83f
Reapply accidentially lost part of fix for bug #80003
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350380 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-25 13:18:01 +00:00
Tiffany Taylor
a14d8cc169
add tables for assignment operators
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350379 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-25 13:02:40 +00:00
Christoph Michael Becker
0241f6e074
Fix #80003 : The Type Operators page is not correct for the instanceof operator in 7.3+
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350349 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-20 16:44:56 +00:00
Christoph Michael Becker
70528785e7
Fix #77948 : Wrong Namespaces FAQ item interpretation/explanation
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350306 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-13 13:04:25 +00:00
Christoph Michael Becker
af69aee72f
Fix #75466 : Undocumented Backward Compatibility Break from 7.0 to 7.1
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350302 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-13 11:58:10 +00:00
Christoph Michael Becker
65acc18cd9
Clarify behavior of wrong return types in weak mode
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350301 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-13 11:28:38 +00:00
Christoph Michael Becker
796f0da379
Remove duplicated word
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350292 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-08 13:06:54 +00:00
Christoph Michael Becker
17624e47b9
Fix #79901 : Wrong Link
...
Clarify that this is about *error* types.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350218 c90b9560-bf6c-de11-be94-00142212c4b1
2020-07-27 11:37:34 +00:00
Christoph Michael Becker
411c8ecee0
Update info regarding max integer size on 64bit Windows
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350156 c90b9560-bf6c-de11-be94-00142212c4b1
2020-07-15 10:02:46 +00:00
Christoph Michael Becker
8cd8caa1c2
Document SSL context option security_level
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350049 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-18 12:26:26 +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
e9c3f8dfd8
Remove unnecessary "Sometimes"
...
Patch provided by Toni Hutter.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349746 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-04 13:37:46 +00:00
Christoph Michael Becker
498e7a69fb
Update examples for PHP 5+
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349734 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-02 12:47:06 +00:00
Christoph Michael Becker
dcd5448282
Fix other typos outside of php module docs
...
Patch provided by tandre@php.net .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349711 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-27 06:59:43 +00:00
Christoph Michael Becker
9268006bcf
Document PHP 7.4 arrow functions
...
Patch provided by tandre@php.net .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349700 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-26 12:39:17 +00:00
Christoph Michael Becker
828f56ed32
Operator Precedence - Add print
, fix associativity of instanceof
and unary operators
...
Patch provided by Guilliam Xavier.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349661 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-15 09:35:46 +00:00
Christoph Michael Becker
886599435a
Fix #66668 : Function names are case-sensitive for chars with codes 127-255
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-13 16:02:59 +00:00
George Peter Banyard
cb89675ef3
Remove duplicated word
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349649 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-12 01:41:05 +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
George Peter Banyard
9d539daa5f
Updating a class name of an example, following the psr-1 standard:
...
+ Class names MUST be declared in StudlyCaps.
https://www.php-fig.org/psr/psr-1/#3-namespace-and-class-names
Note by committer: as we are mostly following Pascal case for class names anyway the PSR-1 argument is irrelevant.
--
Provided by anonymous 102110 (tunt081295@gmail.com )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349446 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-15 01:38:47 +00:00
Christoph Michael Becker
b03dfce3fd
Fix #79302 : Support for underscores in numbers not documented
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349427 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-14 16:18:30 +00:00
Christoph Michael Becker
3c28f4f9d0
Fix #79256 : Generator::next not behaving as documented
...
Patch provided by ekin@php.net .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349409 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-13 18:07:06 +00:00
Christoph Michael Becker
59d459d265
Fix #74257 : "namespace \X" does not work to declare a namespace
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349407 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-13 17:37:34 +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
Christoph Michael Becker
0119ca9ded
Fix build and make desired changes visible
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349319 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 13:39:49 +00:00
Sherif Ramadan
1b3f589696
Add missing language constructs
...
Take 2
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349318 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 11:55:36 +00:00
Christoph Michael Becker
0cddfa08a4
Merged revision(s) 349310 from phpdoc/en/trunk:
...
Updating constructs to include eval, echo, and list
........
This can't possibly work, see <https://news-web.php.net/php.doc.cvs/17222 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349313 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 10:51:15 +00:00
Sherif Ramadan
74670c410f
Updating constructs to include eval, echo, and list
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349310 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 10:30:27 +00:00