forward_static_call() と forward_static_call_array() の説明の誤りを原文に合わせて修正 - #496
Merged
KentarouTakeda merged 1 commit intoSep 20, 2026
Merged
Conversation
KentarouTakeda
force-pushed
the
sync-forward-static-call
branch
from
September 20, 2026 05:29
2ddcce3 to
3447271
Compare
php/doc-en@846dfb87da (php/doc-en#5241) と php/doc-en@17ddeefd65 (php/doc-en#5784) に追従します。 forward_static_call_array() を「メソッドのコンテキストでコールしなければならない」 としていた誤りが削除され、クラス外では遅延静的束縛なしの call_user_func_array() と 同じ挙動になること、forward_static_call() 側はクラススコープを必要とするという 非対称性が追記されました。 ## 対象ファイル (2件) - reference/funchand/functions/forward-static-call.xml - reference/funchand/functions/forward-static-call-array.xml
KentarouTakeda
force-pushed
the
sync-forward-static-call
branch
from
September 20, 2026 06:16
3447271 to
b44b09e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
php/doc-en@846dfb87da (php/doc-en#5241) と php/doc-en@17ddeefd65 (php/doc-en#5784)
に追従します。
static メソッドをコールするだけの関数だと読める説明を書き直し、コールバック全般を
コールできること、その際に現在呼び出されたクラスが保持されることを明記しています。
forward_static_call_array() がメソッドのコンテキストを必要とするとしていた誤りを修正し、
forward_static_call() のほうはクラススコープを必要とするという違いを note に追加しました。
args を参照渡しできないとしていた誤りも修正しています。
対象ファイル (2件)