Skip to content

Cast to null is not a cast #103

Closed
Closed
@czosel

Description

@czosel

Now that the PR #102 is merged, I have another question concerning casts. I noticed that (unset) $foo is parsed as an unset node instead of a cast node with type unset. While this is workable for the prettier integration, i still found it a bit confusing - especially because the difference bettween the unset cast and a regular call like unset($foo) is just that the first one has a single node in arguments, while the second one has a list.
Thanks in advance 😄

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions