亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

后期靜態綁定中的對象靜態屬性

后期靜態綁定中的對象靜態屬性

PHP
慕碼人2483693 2022-10-22 15:41:17
問題已解決,這是一個錯誤,請參閱https://github.com/docker-library/php/issues/133真正奇怪的是,我一直在我的框架中使用它,但突然它停止了對這個特定示例的工作。在執行這部分邏輯之前,它多次使用沒有問題......不知道為什么這部分不起作用。class DailyCompetitionWinnersFactory extends Factory{    public static $table = 'tf_dc_winners';    public static $child_item_class_name = DailyCompetitionWinnersItem::class;}abstract class Factory extends coreClass{    static $factory_instance_counter = 0;    static $child_item_class_name = null;    static $table = null;    protected $orig_handled_obj_array = null;    protected $handled_obj_array = null;    public static function Create()    {        return new static();    }}創建新實例DailyCompetitionWinnersFactory::Create()我得到 DailyCompetitionWinnersFactory 的實例,但它沒有定義任何靜態屬性。
查看完整描述

1 回答

?
慕碼人8056858

TA貢獻1803條經驗 獲得超6個贊

它是一個錯誤,請參閱https://github.com/docker-library/php/issues/133


寫更多字符,以便我可以發布此答案。


查看完整回答
反對 回復 2022-10-22
  • 1 回答
  • 0 關注
  • 93 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號