Skip to content

マジック定数・void・never などの説明を原文の変更に追従 (5ファイル) - #545

Merged
KentarouTakeda merged 1 commit into
php:masterfrom
KentarouTakeda:sync-language
Oct 13, 2026
Merged

KentarouTakeda merged 1 commit into
php:masterfrom
KentarouTakeda:sync-language

Conversation

@KentarouTakeda

@KentarouTakeda KentarouTakeda commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

言語リファレンスの 5 ファイルを原文の変更に追従しました。

原文では次の変更がありました。

あわせて、increment.xml の既訳を 2 か所直しました。

  • bool と null に加算子・減算子を適用したときの警告で、将来のキャスト先を「数値型」としていた誤りを、原文どおり int に修正しました
  • 「Perl 風の、文字列をインクリメントする機能」の節の警告から、原文にない補足「(E_DEPRECATED は発生しないものの、新しいコードではこの機能を使うべきではない)」を削りました。同じ節に、PHP 8.3.0 からは空文字列や英数字以外の文字を含む文字列で、PHP 8.5.0 からは数値形式でない文字列すべてで E_DEPRECATED が発生する、とあるためです

対象ファイル

language/ (5) — constants.xml, control-structures/alternative-syntax.xml, operators/increment.xml, types/never.xml, types/void.xml

@KentarouTakeda
KentarouTakeda force-pushed the sync-language branch 3 times, most recently from 2446994 to ad6087a Compare October 13, 2026 12:57
@KentarouTakeda
KentarouTakeda merged commit 7a5f08d into php:master Oct 13, 2026
2 checks passed
@KentarouTakeda
KentarouTakeda deleted the sync-language branch October 13, 2026 13: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.

1 participant