Commit graph

2303 commits

Author SHA1 Message Date
Christoph M. Becker
3e08a8aae6 Remove obsolete PHP 5 related info from ini.core and related pages 2021-02-24 14:32:08 +01: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
George Peter Banyard
871df69f47
Explain what consistitutes a more specific type
Closes GH-457
2021-02-18 18:00:47 +00:00
George Peter Banyard
12b1d4704e
Cleanup and update docs related to @ operator
Also fix part of the set_error_handler() docs

Closes GH-441
2021-02-18 16:31:56 +00:00
Christoph M. Becker
4dfe5cc41e Fix #77889: URL in Location header not used 2021-02-17 14:28:06 +01:00
Yoshinari Takaoka
ae956cd678 Named Arguments are also supported. 2021-02-15 23:28:58 +09:00
Sebastian Schendel
46efcedd4a Allow Throwable for $previous param
In current PHP versions the Exception-class seems to allow all Throwable
values for its constructor's $previous param instead of only values of
type Exception.

Closes GH-442.
2021-02-13 15:39:45 +01:00
George B
86951bfac9 Update attributes.xml: Adjustments to grammar
Closes GH-445.
2021-02-13 14:55:49 +01:00
Christoph M. Becker
b3d7fa5000 Add separate section for magic constants
It is pretty confusing to only have a section about "Magic constants"
with the xmlid `language.constants.predefined` but to start that
section with a paragraph about predefined constants.
2021-02-12 14:22:24 +01: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
George Peter Banyard
783fbc2001
Add exponentiation assignment operator to corresponding table 2021-02-03 01:46:50 +00:00
Michael Voříšek
fc4e5c27fa Add nullable to return type for Serializable::serialize
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-423.
2021-01-28 11:14:29 +01:00
Christoph M. Becker
e55a1ca950 goto labels are case-sensitive
This integrates user note 125733.
2021-01-28 11:10:30 +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
grimskin
572c672502 Small grammar fix for the Attributes docs
- using `is` instead of `are` with singular noun - typo fix in word `separated`

Closes GH-370.
2021-01-22 14:05:08 +01:00
USAMI Kenta
ffbe652535 require_once and include are expressions, not statements
Closes GH-369.
2021-01-20 14:29:11 +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
4a7ddddc27
Remove some mentions of register globals 2021-01-16 11:30:04 +00: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
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
George Peter Banyard
a8aca5fb3f Typo in code output 2021-01-09 00:46:23 +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
Henri Larget
646e6eb3e3 fix typo in arithmetic assignment operators
Closes GH-313

Signed-off-by: George Peter Banyard <girgias@php.net>
2021-01-05 22:54:51 +00:00
Christoph M. Becker
4f04bd50ed Fix #80570: Incorrect named argument name for the nested function 2021-01-01 14:57:42 +01:00
Kamil Tekiela
4774ba9dba Incorrect value in include. Patch provided by anonymous 992 via edit.php.net
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352283 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-29 17:55:33 +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
Christoph Michael Becker
ef81c708fa Fix #80486: Undocumented backward incompatible change between 7.4.8 and 7.4.9
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352241 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-28 14:07:20 +00:00
George Peter Banyard
e132ef28fd Fix Attribute constant name in title
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352158 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-21 16:17:18 +00:00
Christoph Michael Becker
8ebad33b9c Fix #69962: php://temp / php://memory don't support stat()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352123 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-18 12:44:03 +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
George Peter Banyard
084d6414ec Class constant visibility is avialable since PHP 7.1.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351966 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-09 11:50:07 +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
Yoshinari Takaoka
8c5992635c for clarify, added class constants.
Attributes supports class constants, not global one.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351951 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-07 20:31:23 +00:00
Christoph Michael Becker
7104ee97ce Removed literal tags from title for readability
Closes GH-250.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351935 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-06 22:38:36 +00:00
Christoph Michael Becker
e296d2443b fixed description about passing [mandatory|optional] parameter order
Closes GH-270.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351933 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-06 22:22:36 +00:00
Christoph Michael Becker
3dc4fa0723 Fix typo and remove @
We also applies some proper code formatting.

Closes GH-271.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351926 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-06 16:20:35 +00:00
Yoshinari Takaoka
0cd5feb518 fixed attribute syntax example.
In this example, SetUp attribute belongs to ReflectionMethod.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351915 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-06 00:15:57 +00:00
Yoshinari Takaoka
c0e16e2e3d fixed syntax error, by adding trailing semicolon.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351914 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-05 23:51:00 +00:00
Christoph Michael Becker
720f4daa5c Add version info for new attributes page
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351909 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-05 18:25:57 +00:00
George Peter Banyard
8500ca3fb8 Document named arguments
Closes GH-251

Co-authored-by: Ekin H. Bayar <ekin@php.net>


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351885 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-04 23:25:41 +00:00
George Peter Banyard
9caba962ed Add chapter on Attributes in language section.
Closes GH-254

Co-authored-by: Benjamin Eberlei <beberlei@php.net>



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351884 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-04 23:15:43 +00:00
Christoph Michael Becker
58dc296fc5 Fix example in match docs (missing terminating semi-colon)
As pointed out by girgias.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351833 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-02 00:18:01 +00:00
Christoph Michael Becker
9c098f1e96 Fix #80452: Null Coalesce Operator Swallow warning error
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351816 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-01 12:20:13 +00: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