Skip to content

Add #[NoDiscard] to the PHP 8.5 polyfill#522

Merged
fabpot merged 1 commit into
symfony:1.xfrom
schodemeiss:1.x
May 2, 2025
Merged

Add #[NoDiscard] to the PHP 8.5 polyfill#522
fabpot merged 1 commit into
symfony:1.xfrom
schodemeiss:1.x

Conversation

@schodemeiss
Copy link
Copy Markdown

No description provided.

Comment thread src/Php85/Resources/stubs/NoDiscard.php Outdated
Copy link
Copy Markdown
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@schodemeiss
Copy link
Copy Markdown
Author

schodemeiss commented Apr 7, 2025

Thanks, the stub is identical to the one provided in php-src: https://github.com/TimWolla/php-src/blob/d80682e753af13a89ad71ee78100ce44045f175d/Zend/zend_attributes.stub.php#L88-L97

Indeed. I presumed that was the correct thing to do.

Do we know when this Polyfill will be published as non-dev. I noticed it's on Packagist, but not as 1.38 (or whatever the other polyfills are).

https://packagist.org/packages/symfony/polyfill-php85

@fabpot
Copy link
Copy Markdown
Member

fabpot commented May 2, 2025

Thank you @schodemeiss.

@fabpot fabpot merged commit a494f75 into symfony:1.x May 2, 2025
1 of 10 checks passed
@schodemeiss
Copy link
Copy Markdown
Author

Thank you @schodemeiss.

You're welcome. When do the polyfill packages get officially published? I noticed that whilst php85 appears on Packagist, it's still on the dev branch.

@fabpot
Copy link
Copy Markdown
Member

fabpot commented May 2, 2025

Thank you @schodemeiss.

You're welcome. When do the polyfill packages get officially published? I noticed that whilst php85 appears on Packagist, it's still on the dev branch.

I've released v1.32.0 which includes the PHP 8.5 polyfill.

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.

5 participants