Skip to content

forward_static_call() と forward_static_call_array() の説明の誤りを原文に合わせて修正 - #496

Merged
KentarouTakeda merged 1 commit into
php:masterfrom
KentarouTakeda:sync-forward-static-call
Sep 20, 2026
Merged

KentarouTakeda merged 1 commit into
php:masterfrom
KentarouTakeda:sync-forward-static-call

Conversation

@KentarouTakeda

@KentarouTakeda KentarouTakeda commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

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件)

  • reference/funchand/functions/forward-static-call.xml
  • reference/funchand/functions/forward-static-call-array.xml

@KentarouTakeda
KentarouTakeda force-pushed the sync-forward-static-call branch from 2ddcce3 to 3447271 Compare September 20, 2026 05:29
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
KentarouTakeda force-pushed the sync-forward-static-call branch from 3447271 to b44b09e Compare September 20, 2026 06:16
@KentarouTakeda
KentarouTakeda merged commit a9a4af0 into php:master Sep 20, 2026
2 checks passed
@KentarouTakeda
KentarouTakeda deleted the sync-forward-static-call branch September 20, 2026 06:25
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