Skip to content

[Sync-En] types: document compile-time and runtime checks for never - #3649

Merged
lacatoire merged 1 commit into
php:masterfrom
lacatoire:sync-en/3645-never-type
Oct 6, 2026
Merged

lacatoire merged 1 commit into
php:masterfrom
lacatoire:sync-en/3645-never-type

Conversation

@lacatoire

Copy link
Copy Markdown
Member

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

Fixes: #3645

@lacatoire
lacatoire merged commit 67563ae into php:master Oct 6, 2026
5 checks passed
@lacatoire
lacatoire deleted the sync-en/3645-never-type branch October 6, 2026 12:21
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)

1 participant