Static property hooks

オープン
#23,196 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
php
領域
compilers

調査の方向性

まず、Issue で参照されている既存の Property Hooks RFC を確認し、static properties のために何を変更する必要があるかを判断します。完了条件は、提案を説明し、static property hooks をサポートすべきかどうかを扱う RFC を作成して文書化することです。

索引モデルが issue の本文から書いたものです。

説明

Category: Engine Feature Status: Needs Triage
Description

Has anyone ever asked for property hooks on static properties? Or, more importantly: has anyone actually gone through the trouble of writing an RFC for it?

The current Property Hooks RFC explicitly excludes static properties. I was wondering whether this is simply a limitation that has never been addressed, or whether there are good reasons why static property hooks should not exist.

For example:

class Foo
{
    public static string $bar {
        get => ...;
        set => ...;
    }
}

If there is interest, I would be happy to take on the work of writing the RFC.

主要言語
C
スター
40.4k
フォーク
8.2k
平均マージ
2日 15時間
マージ済み PR(30日)
103

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

php/php-src のほかの issue

php/php-src の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。