Skip to content

[Sync-En] language: document the compile-time and runtime checks for never - #1412

Merged
julionc merged 1 commit into
php:masterfrom
lacatoire:sync-en/never-checks
Oct 9, 2026
Merged

julionc merged 1 commit into
php:masterfrom
lacatoire:sync-en/never-checks

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Translation of php/doc-en#5906 (commit 18a1cc5): a return statement in a never function is a compile-time error, and reaching the end of one throws a TypeError. EN-Revision updated.

Fixed the untranslated union type link text and its missing full stop along the way.

Fixes: #1408

@julionc
julionc merged commit 9635f84 into php:master Oct 9, 2026
4 checks passed
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.

[Sync EN] Document the compile-time and runtime checks for never (#5906)

2 participants