問題已解決,這是一個(gè)錯(cuò)誤,請(qǐng)參閱https://github.com/docker-library/php/issues/133真正奇怪的是,我一直在我的框架中使用它,但突然它停止了對(duì)這個(gè)特定示例的工作。在執(zhí)行這部分邏輯之前,它多次使用沒有問題......不知道為什么這部分不起作用。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(); }}創(chuàng)建新實(shí)例DailyCompetitionWinnersFactory::Create()我得到 DailyCompetitionWinnersFactory 的實(shí)例,但它沒有定義任何靜態(tài)屬性。
后期靜態(tài)綁定中的對(duì)象靜態(tài)屬性
慕碼人2483693
2022-10-22 15:41:17