Skip to content

[pull] master from php:master#180

Merged
pull[bot] merged 1 commit into
dolfly:masterfrom
php:master
Sep 2, 2025
Merged

[pull] master from php:master#180
pull[bot] merged 1 commit into
dolfly:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Sep 2, 2025

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.3)

Can you help keep this open source service alive? 💖 Please sponsor : )

We need to emit the EXT_STMT opcode before we compile the call, so that we
attach the line number of where the right hand pipe operator starts.

We also do not need to reset the line number anymore.

The following code shows where these EXT_STMTs are introduced.

```
<?php
/* EXT_STMT */ $myString = "<Hello World>";
$result = /* EXT_STMT */ $myString

    |> /* EXT_STMT(!0:$myString) */ \htmlentities(...)

    |>
		/* EXT_STMT($4) */ \str_split(...)

    |> /* EXT_STMT($6) */ (fn($x) => array_map(strtoupper(...), $x))

    |> /* EXT_STMT($9) */ (fn($x) => join( ', ', $x));

/* EXT_STMT */ echo $result, /* EXT_STMT */ "\n";
```
@pull pull Bot locked and limited conversation to collaborators Sep 2, 2025
@pull pull Bot added the ⤵️ pull label Sep 2, 2025
@pull pull Bot merged commit d85662d into dolfly:master Sep 2, 2025
8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant