Nathanael Esayeas
ca697b4303
Add grammar for readonly classes
...
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com >
2024-03-07 22:08:27 +01:00
Ben Ramsey
287f3d0e12
Indicate space is allowed between "endswitch" and ";"
2024-03-03 12:26:05 +01:00
Gina Peter Banyard
a1e3e4ff3c
Merge pull request #259 from saundefined/patch-1
...
Update ML instructions
2024-02-24 23:05:48 +00:00
Sergey Panteleev
bf7423a820
Update ML instructions
2024-02-24 18:48:02 +03:00
Superkooka
4c19272d1f
Fix markdown typo in spec/ ( #249 )
2023-02-24 00:43:29 +01:00
Ilija Tovilo
39ef2ce22b
Merge pull request #257 from petk/patch-readme
...
Mention GitHub upstream instead of obsolete git.php.net
2023-02-04 00:06:03 +01:00
Peter Kokot
ffa3fa58a1
Mention GitHub upstream instead of obsolete git.php.net
2023-02-03 21:43:24 +01:00
Carter Snook
f268abd419
fix(constants): remove duplicate E_USER_DEPRECATED def
...
Closes GH-256.
2022-12-12 13:50:56 +01:00
David Findley
f9d4f7480a
Namespace definition grammar fix ( #254 )
...
* Fix the `namespace-definition` production
The `namespace-definition` production was changed to use `name` instead
of `namespace-name` in c1ac531479 and a6520fb35b . This
appears to be a mistake, since `name` can not produce a `\`.
The spec was originally using `namespace-name` for
`namespace-definition`. This commit restores that grammar production.
* Regenerate using `tools/pre-commit`
It appears that the pre-commit scripts were not used to properly
regenerate the spec recently.
This caused some small styling changes (using html entities for some
chars).
It also caused a bigger change due to `print` being moved out of the
intrinsics section in 63d72a6df5 . It's not completely clear
if this was intentional or not, since `print` is a language intrinsic.
2022-02-05 20:57:00 +01:00
Tyson Andre
d06f3e00dc
Merge pull request #252 from tiffany-taylor/patch-1
...
Fix encoding for < to <
2021-05-06 21:38:27 -04:00
Tiffany
6e288468b6
Fix encoding for < to <
2021-05-06 20:19:38 -05:00
Rodion Efremov
8a7e96736a
Added missing $ to &colors.
...
Line 257 reads "$b = &colors[100];", but should be "$b = &$colors[100];".
2020-03-15 12:25:41 +01:00
Rodion Efremov
694b0290a6
Fixed the leftwards diagram arrows from < to <.
...
Some arrow diagrams are rendered as `<--` instead of `<--`.
2020-03-15 12:22:54 +01:00
Nikita Popov
ab19cb01fd
Adjust serialization tests
...
I believe this is due to the support for unserializing with changed
visibility, which will assign to the private x/y properties now.
2019-04-08 09:24:02 +02:00
Nikita Popov
5156669279
Adjust for PHP 8 negative array key change
2019-04-08 09:21:58 +02:00
Nikita Popov
2f0881e798
Avoid static call to non-static method
2019-04-08 09:12:32 +02:00
Nikita Popov
231e64995d
Case-insensitive constants are no longer supported
2019-04-08 09:10:24 +02:00
Nikita Popov
64dd279d28
Fix more undefined constant uses
2019-04-08 09:06:18 +02:00
Nikita Popov
5fc96c5dfd
(unset) casts are no longer supported since PHP 8
2019-04-08 09:02:56 +02:00
Nikita Popov
dc2e8d9593
Fix constant uses in basic.phpt
...
These are no longer legal in PHP 8. This is supposed to be testing
dynamic function calls, for which we should be using the string and
not rely on the bareword fallback.
2019-04-08 08:59:24 +02:00
agares
fe55bee012
Define encoding of PHP scripts
2019-04-08 08:53:22 +02:00
Nikita Popov
fd81c6b8f6
Fix print-expression/yield-expression mixup
...
Fixes #236 .
2019-04-08 08:50:22 +02:00
David Walker
ee9565cf6a
Update spec for by-ref list RFC
2019-03-15 10:30:11 +01:00
Nikita Popov
9d99cf029b
Revert "Define encoding of PHP scripts"
...
This reverts commit f35bd70531 .
2019-03-15 10:30:07 +01:00
agares
f35bd70531
Define encoding of PHP scripts
...
1. Remove references to unicode codepoints (as those were ambigouous
without a defined encoding) and replace them with byte values
2. Define the encoding of PHP scripts as ASCII, where bytes greater than
0x7F are allowed
2019-03-15 10:08:58 +01:00
Nikita Popov
15aa45273f
Mark instanceof as left-associative
...
May not have been originally intended this way, but it's how the
language works right now, so specify it as such (#226 ).
2019-03-15 09:54:22 +01:00
Nikita Popov
63d72a6df5
Fix print precedence
2019-03-15 09:52:05 +01:00
Nikita Popov
b0dadd509b
Fix yield / yield from precedence
2019-03-15 09:47:54 +01:00
Nikita Popov
1058a50420
Fix precedence of by-ref assignment
...
Because it has variables on both sides, this is a primary expression.
2019-03-14 13:33:24 +01:00
Nikita Popov
2c380e4cc0
Use PHP 7.3 on Travis
...
Apparently the master/nightly builds haven't updated since
September...
2018-12-22 13:39:27 +01:00
Nikita Popov
313688242e
Adjust constant warning message for PHP 7.3
...
The spec already correctly mentions that resources are allowed.
The warning was clarified in PHP 7.3.
2018-12-22 13:29:45 +01:00
zhujinxuan
197a397cf8
Add trialing comma description for constructs and functions
...
* Add trailing comma for
- isset and unset
- static and dynamic methods
- functions and closure as functions
- new statement
* Add or change the related tests to support the trialing comma
2018-12-22 13:27:47 +01:00
zhujinxuan
322c5c037e
Fix relative path of pre-commit
2018-12-22 13:27:18 +01:00
Peter Kokot
be010b4435
Sync final newlines
...
- Redundant final newlines trimmed into one
- Missing final newlines added where can be added
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character although not
mandatory.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
2018-10-01 20:21:21 +02:00
Peter Kokot
97bef5c032
Trim trailing whitespace
2018-09-21 02:44:25 +02:00
Tyson Andre
b5b19c34aa
Fix typo in spec/
...
And remove trailing whitespace
2018-09-16 09:49:11 +02:00
Tyson Andre
4094fe38ac
Fix other typos in tests/
2018-09-16 09:49:11 +02:00
Nikita Popov
15b92edd48
Support multiple catch
...
Fixes #216 .
2018-09-10 14:02:25 +02:00
Nikita Popov
b5ca441040
Continue on switch emits warning
2018-09-10 13:54:16 +02:00
Nikita Popov
ea03278e7e
Case-insensitive constants are deprecated
2018-09-10 13:47:58 +02:00
Tyson Andre
bbbcec63be
Fixes #217 : Incorrect rule for trait-select-insteadof-clause
...
An example of the insteadof clause (satisfies the fixed rule):
`use T1,T2,T3{T1::foo insteadof T2,T3;}`
2018-09-10 13:43:42 +02:00
Tyson Andre
8f78136eaa
Fix typos in the unit tests (comments/messages)
...
Detected by https://github.com/client9/misspell
2018-09-10 13:40:26 +02:00
Tyson Andre
8953d961e3
Fix typos in the specification markdown
...
Detected by https://github.com/client9/misspell
2018-09-10 13:39:18 +02:00
Christoph M. Becker
7d350634b4
Fix description on how to run the tests
...
As of commit 8af91fd41c all tests are
PHPTs, and make_phpt has been removed. We adjust the docs accordingly.
2018-08-29 19:18:00 +02:00
Alexander Holman MBCS AMIAP
63375439ff
Add missing core constants
...
Closes #214 .
2018-01-02 20:38:51 +01:00
James Gilliland
1dc4793ede
Fix statement capitalization
...
just making it consistent with the other items in the list.
2017-09-28 18:01:43 +02:00
Nikita Popov
dc3290165e
Note that LHS of :: can also be an object
2017-09-28 18:00:50 +02:00
Nikita Popov
325f4aed5a
Point to GH issues in README
2017-09-26 11:01:46 +02:00
Nikita Popov
b0e2ca9360
Mention generated files + pre-commit hook in CONTRIBUTING
2017-09-26 10:59:40 +02:00
Nikita Popov
7741beb3af
Add sample git pre-commit hook
2017-09-26 10:53:52 +02:00