Thomas Landauer
170ca71e2d
Deleting usage "limitation" to debugging ( #1331 )
...
The name property is useful for more than just debugging.
2022-01-14 11:44:07 -06:00
Sergey Panteleev
afec339bc5
[PHP 8.1] Calling a static element on a trait is deprecated ( #1333 )
2022-01-14 16:11:24 +03:00
Sergey Panteleev
2dffa9fe11
[PHP 8.1] Calling a static element on a trait is deprecated ( #1330 )
2022-01-14 15:34:37 +03:00
Yoshinari Takaoka
f889672ad1
fixed property example which is outside a class.
2022-01-09 07:20:15 +09:00
Yoshinari Takaoka
df05c244a6
added readonly modifier link.
2022-01-09 07:17:46 +09:00
George Peter Banyard
f5e5b54129
Properties do not need to be declared with a visibility modifier ( #1311 )
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2022-01-08 18:58:14 +00:00
Yoshinari Takaoka
b57f8f256a
Clarify class-types meaning in composite type description. ( #1306 )
2022-01-06 14:22:32 +00:00
George Peter Banyard
7d9aa6352e
Restructure type declaration page & document Intersection types ( #982 )
2022-01-06 12:36:43 +00:00
Yoshinari Takaoka
5c2678e02f
added nullsafe operator link.
2021-12-28 18:41:09 +09:00
Yoshinari Takaoka
daaf426cbf
fixed CallableExpr(...) semantics description.
2021-12-28 18:17:54 +09:00
Yoshinari Takaoka
0b005cfe4e
[PHP 8.1] Document the first class callable syntax. ( #1176 )
...
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2021-12-28 15:51:30 +09:00
Yoshinari Takaoka
0e68f0a712
fixed Exception class and method property names.
2021-12-27 00:52:56 +09:00
Christoph M. Becker
bf4621b543
Actually add FiberError::__construct page to manual
...
For predefined classes, we need to do this manually.
2021-12-26 13:12:30 +01:00
Máté Kocsis
e5021b6d8b
Generate various class synopses from stubs - part 2 ( #1251 )
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-12-26 12:10:36 +01:00
Máté Kocsis
8b89ee4ec1
Regenerate Exception class and method synapses from stubs ( #1260 )
2021-12-26 12:05:49 +01:00
Máté Kocsis
c974636453
Change the order of union return types
...
In order to make it compatible with gen_stub.php's output
2021-12-26 10:57:26 +01:00
Máté Kocsis
1206279edf
Generate Zend class synopses from stubs - part 2 ( #1245 )
2021-12-23 14:25:27 +01:00
Máté Kocsis
65b648f058
Generate Zend class synopses from stubs - part 1 ( #1244 )
2021-12-23 14:03:03 +01:00
Thomas Landauer
1f7c271286
Document that enum cases are labels
...
Closes GH-1197.
2021-12-15 18:21:33 +01:00
Dan
c36ce0b514
[8.0] Document remaining core changes
...
* document changes to `new` in php 8.0
* document php 8.0 changes for `instanceof`
* document php 8.0 change to `define`
Co-authored-by: Peter Cowburn <petercowburn@gmail.com>
Closes GH-1155.
2021-12-14 18:34:40 +01:00
Christoph M. Becker
fbba47c54e
Remove obsolete info regarding php://stdin
2021-12-09 16:13:27 +01:00
Christoph M. Becker
0219f62dcd
*Declaring* mandatory after optional parameters is deprecated
...
It's not about *passing* of the arguments.
2021-12-09 13:53:23 +01:00
魔王卷子
690c3ea7c7
[skip-revcheck] fixed typo ( #1187 )
2021-12-09 10:12:38 +03:00
Yoshinari Takaoka
5e8652131e
added link for "final class constant" example.
...
This link will be also used from releases/8.1/en.php.
2021-12-05 22:47:41 +09:00
Yoshinari Takaoka
ca12a0c524
added link language.fibers in seealso section.
2021-12-04 20:56:31 +09:00
Yoshinari Takaoka
e0f02a3b23
Moved [overview|example] of Fibers to language/fibers.xml
...
Closes GH-1172.
2021-12-04 12:47:35 +01:00
Yoshinari Takaoka
2ff6e6bcad
[PHP 8.1] Document Array Unpacking with [int|string] Keys. ( #1171 )
...
Co-authored-by: George Peter Banyard <girgias@php.net>
2021-12-03 12:05:42 +00:00
Eric Stern
93cc19efef
Add list of attribute target constants
...
I think the constant names are self-explanatory enough to not require additional information
Closes GH-1168.
2021-12-02 23:01:16 +01:00
Aaron Piotrowski
1f7a0e4af8
Fiber documentation
...
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Sergey Panteleev <sergey@php.net>
Co-authored-by: Fabien Villepinte <fabien.villepinte@gmail.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-1096.
2021-12-02 16:11:55 +01:00
Yoshinari Takaoka
5d1673b7a0
[PHP 8.1] Document final class constants. ( #1041 )
...
* Document final class constant.
* use singular form.
* Update language/oop5/constants.xml
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
* Update language/oop5/constants.xml
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
2021-11-29 15:06:49 -06:00
Yoshinari Takaoka
a7f535a32b
[PHP 8.1] Document restriction of $GLOBALS usage. ( #1147 )
...
* [PHP 8.1] Document restriction of $GLOBALS usage.
* clarify the meaning of "read-only copy of the global symbol table".
* added sample of how to restore the previous behavior.
2021-11-29 14:56:48 -06:00
Fabien Villepinte
537e1dfad9
Add missing final modifier
...
Closes GH-1152.
2021-11-29 13:47:04 +01:00
Christoph M. Becker
1c4b1d9f91
Fix GH-1157: Covarience/Contravarience with int/float doesn't work
2021-11-28 16:18:08 +01:00
iggyvolz
65782e9ec6
[PHP 8.1] Add note about implementing Serializable without __serialize ( #1141 )
...
* [PHP 8.1] Add note about implementing Serializable without __serialize
* fix
* Update serializable.xml
Co-authored-by: Sergey Panteleev <sergey@php.net>
2021-11-27 13:30:12 -06:00
Yoshinari Takaoka
d73c3dcbd6
[PHP 8.1] Document readonly properties. ( #1047 )
...
* [PHP 8.1] Document readonly properties.
* added ReflectionProperty::isReadOnly method.
* Apply suggestions from code review
Co-authored-by: Sergey Panteleev <sergey@php.net>
* Update language/oop5/properties.xml
Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
* Update language/oop5/properties.xml
Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
* added link to readonly-properties docs.
Co-authored-by: Sergey Panteleev <sergey@php.net>
Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
2021-11-27 13:00:13 -06:00
Yoshinari Takaoka
c140370c35
Document autovivification from false deprecation. ( #1126 )
2021-11-27 01:38:00 +09:00
Fabien Villepinte
5f29513408
Generator is final
...
Closes GH-1145.
2021-11-25 17:28:03 +01:00
Agustin Gomes
9dd74f527d
Correct note to state behavior is still possible
...
The behavior in the Example #7 Old way to make arguments nullable
is still possible in PHP today.
For reference, I thought initially this was a bug in the PHP Core,
and tried to add the respective test case in the PR:
https://github.com/php/php-src/pull/7627
Closes GH-1142.
2021-11-24 18:38:06 +01:00
Yoshinari Takaoka
d75781abc8
Document returning by reference from a void function deprecation. ( #1127 )
...
Document returning by reference from a void function deprecation.
Co-authored-by: George Peter Banyard <girgias@php.net>
2021-11-24 11:48:43 +00:00
Yoshinari Takaoka
61b163dbdf
BackedEnum is also an interface. ( #1136 )
...
closes #1135
https://github.com/php/doc-en/issues/1135#issuecomment-977262147
2021-11-24 17:59:09 +09:00
Christoph M. Becker
0445efae74
Fix GH-1135: UnitEnum is an interface
2021-11-23 19:15:08 +01:00
Christoph M. Becker
59244d9ae9
Fix #81635 : No example of complex interpolation syntax with filenames
2021-11-18 15:18:17 +01:00
Christoph M. Becker
d332b5ae70
Uninitialized type properties are silently discarded on array cast
...
Cf. <https://bugs.php.net/81629 >.
2021-11-17 15:15:09 +01:00
Christoph M. Becker
3725fe1c95
Document dangling else handling
...
Cf. <https://bugs.php.net/51016#1619439579 >.
2021-11-16 16:10:56 +01:00
Christoph M. Becker
14e006b4ee
Passing values of wrong types is no longer undefined behavior as of PHP 8.1.0
...
Well, at least for the core functions, and many PECL extensions. Some
PECL extension functions may not yet behave this way, so we add in a
"supposed to".
2021-11-15 17:28:59 +01:00
Elnur Abdurrakhimov
3ba4c7d287
[skip-revcheck] Fix typo (it's → its)
...
Closes GH-1095.
2021-11-14 12:56:28 +01:00
cmp
085c38d45e
PHP 8.1: Update integer docs for new octal notation
...
Closes GH-1091.
2021-11-13 11:00:05 +01:00
Jeremy Mikola
7cfd68e5d4
Document Stringable::__toString() method
...
Also fixes links to __toString() magic method in Stringable interface docs.
Closes GH-1082.
2021-11-11 17:09:59 +01:00
DAI JIE
07fa5232bf
Correct the method name
...
Closes GH-1083.
2021-11-11 10:54:50 +01:00
Runbing
62739864aa
Correct the wrong keyword in the sample code ( #1080 )
...
functiond -> function
2021-11-10 10:56:29 +03:00