Skip to content

PHP: Add support for the pipe operator (|>) (master branch) #3953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ayesh
Copy link
Contributor

@Ayesh Ayesh commented May 29, 2025

Adds the |> symbol to the regexp that matches individual operators such as ??, ?=, ||, etc.

In PHP, | and > are operators too, but when combined, it is parsed as the new pipe operator.

Adds the `|>` symbol to the regexp that matches individual
operators such as `??`, `?=`, `||`, etc.

In PHP, `|` and `>` are operators too, but when combined, it is
parsed as the new pipe operator.

 - [RFC](http://wiki.php.net/rfc/pipe-operator-v3)
 - [PHP 8.5: Pipe operator](https://php.watch/versions/8.5/pipe-operator) (<- also a working demo of the changes)
Copy link

netlify bot commented May 29, 2025

Deploy Preview for dev-prismjs-com ready!

Name Link
🔨 Latest commit 8df882a
🔍 Latest deploy log https://app.netlify.com/projects/dev-prismjs-com/deploys/683891d40df17f0008bc036f
😎 Deploy Preview https://deploy-preview-3953--dev-prismjs-com.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

No JS Changes

Generated by 🚫 dangerJS against 8df882a

@Ayesh Ayesh changed the title PHP: Add support for the pipe operator (|>) PHP: Add support for the pipe operator (|>) (master branch) May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant