09339862 | 01-Sep-2022 |
Nikita Popov |
Make sure Array nodes can not contain null Now that destructuring is always represented using List nodes, make sure that Array nodes can no longer contain null elements, so well-type
Make sure Array nodes can not contain null Now that destructuring is always represented using List nodes, make sure that Array nodes can no longer contain null elements, so well-typed code doesn't have to deal with them unnecessarily. If an array does contain empty elements, these are now result in an error and are represented as a ArrayItem with Error value if error recovery is used. The implementation is a bit tricky because at the time the Array node is created, we cannot tell whether it will be used in a creation or destructuring context. For this reason the error reporting is delayed parsing has finished. Closes #876.
show more ...
|
9857581e | 29-Aug-2022 |
Anton |
Add array/callable to BUILTIN_TYPE_VERSIONS Listing these is not strictly necessary, in that array/callable are keywords, and as such don't use the relevant code path. We can still i
Add array/callable to BUILTIN_TYPE_VERSIONS Listing these is not strictly necessary, in that array/callable are keywords, and as such don't use the relevant code path. We can still include them for the sake of completeness. Closes #872.
show more ...
|
1f504d2c | 07-Aug-2022 |
Nikita Popov |
Don't trim in Comment::getReformattedText() In the past, single-line comments were stored together with the trailing newline. Later we switched to the PHP8 comment representation, wh
Don't trim in Comment::getReformattedText() In the past, single-line comments were stored together with the trailing newline. Later we switched to the PHP8 comment representation, where the trailing newline is not part of the comment anymore. As such, there is also no need to trim here. This is split out from GH-867.
show more ...
|