Commit graph

32 commits

Author SHA1 Message Date
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
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
Jean-Sebastien Hedde
56e3e61f45 Reverse the naming of variables $getXCB and $getX in Pre PHP 7 code.
(Seems better than renaming $getX to $getXCB in PHP 7+ code.)

-- 
Provided by anonymous 82812 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342554 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-07 11:51:03 +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
44635bde19 typo fixes by anon users
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339240 c90b9560-bf6c-de11-be94-00142212c4b1
2016-05-30 13:59:33 +00:00
Andrea Faulds
2bea2e045b Correct "null coalesce" to "null coalescing"
When I originally named the "Null Coalesce Operator" RFC, I made this mistake. But the manual doesn't need to repeat it.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338220 c90b9560-bf6c-de11-be94-00142212c4b1
2015-12-07 14:49:18 +00:00
Maciej Sobaczewski
7d389b4a8c Fix syntax error in code example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338214 c90b9560-bf6c-de11-be94-00142212c4b1
2015-12-05 06:25:37 +00:00
Bob Weinand
08b561c718 Fix bug #70746 (Please document spaceship as returning -1 or 0 or 1)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338015 c90b9560-bf6c-de11-be94-00142212c4b1
2015-10-22 01:41:30 +00:00
Adam Harvey
12b92ba1e3 Trim down the migration guide CSPRNG section.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337872 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:17:17 +00:00
Adam Harvey
6ffafe591a Add a paragraph about list() and ArrayAccess.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337870 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:17:07 +00:00
Adam Harvey
72af2380f5 Cut down the preg_replace_callback_array() part of the migration guide.
I've removed the example: it was terrific, but the function reference has a
good example, and it was much too long for the page.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337869 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:17:02 +00:00
Adam Harvey
d8849b5554 Make the session option changes less session_start() specific.
This also adds documentation for the new options parameter to the
session_start() page.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337868 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:16:57 +00:00
Adam Harvey
ae35f99a9b Whitespace.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337867 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:16:52 +00:00
Adam Harvey
e94c465823 Slight tinkering with intdiv().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337866 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:16:48 +00:00
Adam Harvey
02d3c3abb7 Move most generator delegration doco to the generators section.
I've also simplified the example in the migration guide somewhat: the combined
"return yield from" construct is now documented only in the generators
documentation.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337864 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:16:39 +00:00
Adam Harvey
e04e53e465 Tinker with group use wording.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337863 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:16:34 +00:00
Adam Harvey
4526a0712f Add expectations documentation.
This included moving the guide for the new configuration directives into the
assert() page to keep the migration guide snappy.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337862 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:16:28 +00:00
Thomas Punt
f6ae711462 Update expectations section
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337503 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-16 17:23:15 +00:00
Adam Harvey
6400e08c91 IntlChar migration guide update.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337375 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:17:50 +00:00
Adam Harvey
6e6d82f097 Add unserialize() options documentation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337373 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:17:31 +00:00
Adam Harvey
02678aa8dc Expand the Closure::call() documentation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337372 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:17:26 +00:00
Adam Harvey
861b65b903 Tinker with the UCES feature doc.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337371 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:17:21 +00:00
Adam Harvey
6b4b39cc49 Move the (excellent!) anonymous class documentation to the language reference.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337370 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:17:17 +00:00
Adam Harvey
31496eaff6 Use the new declare entity.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337369 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:17:12 +00:00
Adam Harvey
a1fd7149d5 Cut down the return type docs in the migration guide.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337368 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:17:08 +00:00
Adam Harvey
01851927f9 Improve type declaration docs.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337367 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:17:04 +00:00
Adam Harvey
4df160596c Cut down the migration guide scalar type declaration section.
All of the variations and examples defined there are shown in the reworked type
declaration reference, so let's not duplicate this unnecessarily.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337366 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:16:59 +00:00
Adam Harvey
a464d22608 Move scalar and return typing up, since that's probably what people care about.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337363 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:16:46 +00:00
Adam Harvey
ef362e88b3 Update define() documentation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337362 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:16:42 +00:00
Adam Harvey
620a91cf5e Update new operator documentation.
This includes removing some of the examples from the migration guide: that
needs to be punchy. We can reinsert them later in the operators reference if
they're of use.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337361 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:16:37 +00:00
Adam Harvey
d12bfab7d6 Flesh out the backward incompatible section (incomplete).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337333 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:14:22 +00:00
Maciej Sobaczewski
3906d95218 PHP 7 migration guide (work in progress)
This commit is the result of work done in
https://github.com/Sobak/php7-migration-guide/
repository. Special thanks go to Thomas Punt for
putting a lot of work to make it happen.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337323 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-07 13:52:37 +00:00