George Peter Banyard
5ccee0ae1c
Move iterable variance section to OOP section
2021-05-04 18:25:23 +01:00
Dan Brown
35af8187d0
Updated string & array curly brace access with support notice ( #546 )
...
The documentation still states that array/string curly brace access
is possible but this was deprecated as of PHP 7.4 as per this RFC:
https://wiki.php.net/rfc/deprecate_curly_braces_array_access
and no longer supported as of PHP 8.
2021-04-26 13:24:09 +02:00
codedokode
2f79a80776
Fix list of falsy values ( #519 )
...
There is no integer -0 (minus zero)
2021-04-12 13:55:35 +02:00
Gabriel Millian
4bf7d10a44
Fix errors in the comments of example number 6
...
Closes GH-500.
2021-03-22 16:44:17 +01:00
Christoph M. Becker
c4de1a0604
Revert "Show info about PHP error reporting"
...
This reverts commit f3e5da139a
, because
it was accidentally committed.
Cf. <https://github.com/php/doc-en/pull/465 >.
2021-03-19 01:54:04 +01:00
Christoph M. Becker
dde64312eb
PHP 7.0 was silent about pseudo-numeric string juggling
2021-03-19 01:28:04 +01:00
kestutisv
f3e5da139a
Show info about PHP error reporting
...
Reader needs to be informed about PHP errors.
2021-03-19 01:09:29 +01:00
George Peter Banyard
fc26164b4b
Hot fix for comment of last line
2021-03-11 13:51:06 +00:00
George Peter Banyard
68c0fcdb9e
Add example of a float string as an array key
...
The behaviour is different from a float key
Also reorder to put this example closer to the numeric keys
Use single quotes consistently
Closes GH-487
2021-03-11 13:49:51 +00:00
Alex Erohin
529359031b
Add final example includes all variations of type casting and overwriting
...
Closes GH-450.
2021-02-22 17:48:22 +01:00
Christoph M. Becker
3ba291b86a
Slightly improve previous commit
...
Sorry, forgot to do right away.
2021-02-22 17:25:33 +01:00
Alex Erohin
3801e08ff8
Added protected property example for Object To Array conversion
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-453.
2021-02-22 17:10:05 +01:00
Lucas Werkmeister
fab81eeee3
Add floats without exponent to numeric string grammar
...
The formal grammar for numeric strings included integers, and
floating-point numbers (decimals) with a mandatory exponent, but not
decimal numbers without exponent.
Closes GH-368
2021-01-20 11:38:41 +00:00
George Peter Banyard
1822bb3819
Make class type declaration context independent
...
Closes GH-316
2021-01-10 01:40:34 +00:00
George Peter Banyard
f0d6f41604
Add 'parent' type declaration
2021-01-09 01:25:56 +00:00
Christoph M. Becker
c4ac84bedb
Fix #68540 : Documenation about checking SimpleXML needs clarification
2021-01-08 12:07:40 +01:00
Nilgün Belma Bugüner
d60cfe1bfd
chmod -x
2021-01-06 15:22:17 +03:00
Christoph Michael Becker
1ffbadf290
Document mixed type (as of PHP 8.0.0)
...
As of PHP 8.0.0, the `mixed` type is available as proper type, so we
move the respective info out of the pseudo types section, which can be
removed now, since it is practically empty.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351804 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-01 01:29:53 +00:00
Christoph Michael Becker
f444b84a42
Remove void from pseudo types page
...
void is no longer a pseudo type as of PHP 7.1.0, and already documented as
language.types.declarations.void. Furthermore, empty parameter lists are
no longer showing void[1].
[1] <https://github.com/php/phd/pull/32 >
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351798 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-30 23:34:36 +00:00
George Peter Banyard
d494ffa4d9
Add a page about numeric strings
...
Closes GH-215
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351700 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-27 15:56:30 +00:00
George Peter Banyard
f99285b504
Fix typo
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351382 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-13 14:49:29 +00:00
George Peter Banyard
46e0f25dcd
Actually add type declaration page...
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351366 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-12 19:45:06 +00:00
George Peter Banyard
a71742330d
Further removal of PHP 5 mentions in language section
...
Closes GH-173
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351340 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-09 13:27:06 +00:00
Christoph Michael Becker
6de2e5772f
Update note wrt. PHP 7.4 and 8.0
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351216 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-04 11:33:18 +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
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
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
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
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
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
Nikita Popov
3fbaa7057b
Remove sign from floating point definition
...
The sign is not part of the number,
it is a separate unary operator.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348072 c90b9560-bf6c-de11-be94-00142212c4b1
2019-09-26 17:11:21 +00:00
Christoph Michael Becker
528e97348f
Remove unsuitable example part
...
This example is about integer literals, but -123 is not a literal but rather an expression.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347812 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-30 15:54:31 +00:00
George Peter Banyard
417eda23c6
Removing mention of WDDX as it's been deprecated.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347511 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-29 15:38:39 +00:00
Peter Cowburn
4fe372927e
negative zero is falsy (fix bug #77778 )
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347033 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-21 19:26:14 +00:00
Christoph Michael Becker
b234cd852d
Add opening PHP tag
...
Patch provided by Csirmaz Bendegúz.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346852 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-18 12:03:39 +00:00
Christoph Michael Becker
8c7cec965e
Merged revision(s) 346849 from phpdoc/en/trunk/language/types/string.xml:
...
Add opening PHP tag
Patch provided by Csirmaz Bendegúz.
........
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346851 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-18 12:00:46 +00:00
Christoph Michael Becker
fd5464bb1c
Add opening PHP tag
...
Patch provided by Csirmaz Bendegúz.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346849 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-18 09:23:06 +00:00
Tyson Andre
578f5f3744
fix typos in language reference
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346847 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-18 05:16:33 +00:00
Christoph Michael Becker
d371c0ab53
Nowdocs treats backslashes literally
...
This integrates user note 123533.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346613 c90b9560-bf6c-de11-be94-00142212c4b1
2019-01-21 11:01:23 +00:00
Christoph Michael Becker
3cc52069e2
Refer to intdiv()
...
Based on a patch provided by an anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346580 c90b9560-bf6c-de11-be94-00142212c4b1
2019-01-09 18:05:27 +00:00
Christoph Michael Becker
0c78bb07f5
Fix error level
...
Cf. <https://3v4l.org/P2iuQ >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346031 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-22 18:10:01 +00:00
Christoph Michael Becker
74a8bfdfce
Add missing xml:id
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346012 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-18 11:15:45 +00:00
Christoph Michael Becker
9c902ef963
Document deprecation of undefined constant as bare string fallback
...
Cf. <https://wiki.php.net/rfc/deprecate-bareword-strings >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345953 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-05 14:09:08 +00:00
Christoph Michael Becker
ad6c403209
Fix #77034 : Casting null to int undefined
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345850 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-19 13:34:25 +00:00
Christoph Michael Becker
c60cc6f3a8
Update wrt. PHP 7.1
...
Patch provided by anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345238 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-29 14:14:24 +00:00
Christoph Michael Becker
9cc4767b2d
What's in a name?
...
The Macintosh operating systems changed their name a few times since
version 10. We follow suite, and use the proper name whenever we refer
to a certain version, and use “macOS” as generic term, since “Mac OS X”
and “OS X” versions are already unsupported, or loose support at the end
of this year.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345139 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-15 11:50:40 +00:00
Christoph Michael Becker
61a86c26f7
This patch changes the confusing use of ~ in the float documentation, to the word "approximately" to avoid ambiguousness with the ~ bitwise NOT operator.
...
--
Provided by anonymous 91768 (php@madara.ninja )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345104 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-08 11:15:07 +00:00