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
Christoph Michael Becker
ca6d258ba2
void is no longer a pseudo type
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351803 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-01 01:08:22 +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
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
574f492ae9
Function trailing commas
...
* Trailing commas in function parameter list.
* Trailing commas in use clause.
* Minor language change along the way.
Closes GH-241.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351733 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 22:43:21 +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
Yoshinari Takaoka
051cc10770
fixed typo
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351706 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-27 21:03:26 +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
Christoph Michael Becker
9eacb8a641
Fix #77947 : Wrong link label for /manual/en/reserved.variables.php
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351675 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-26 17:32:42 +00:00
Christoph Michael Becker
1d58f72646
Exception updates
...
* Empty catch statements
* Throw as an expression
* Various other cleanup while I was there to remove comments
I also deleted a crapload of comments. It's so satisfying.
Closes GH-238.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351652 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-25 23:03:02 +00:00
George Peter Banyard
6970f8fa7b
Add match expression documentation
...
This includes:
- match expression page
- UnhandledMatchError page
Co-authored-by: Larry Garfield <larry@garfieldtech.com>
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351499 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-22 17:31:20 +00:00
George Peter Banyard
31379d5d4a
Add PHP 8 to versions.xml in language section
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351498 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-22 17:06:29 +00:00
Christoph Michael Becker
8bffa66276
Add ValueError page
...
Patch contributed by George Peter Banyard <girgias@php.net>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351496 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-22 14:00:54 +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
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
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
fc8735b2e2
Fix #80349 : data:// URI wrapper is afected by allow_url_fopen
...
Cf. <https://github.com/php/php-src/blob/php-7.3.24/main/streams/memory.c#L790 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351353 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-10 16:50:55 +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
George Peter Banyard
3a511c49bd
Fix function name
...
Provided by anonymous user
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351281 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-06 14:51:48 +00:00