Access Level to certain class must be public error in PHP

前端 未结 5 1578
猫巷女王i
猫巷女王i 2021-01-17 18:21

I created this class



        
5条回答
  •  逝去的感伤
    2021-01-17 18:53

    Since PHP 7.2.0 there was a bug #61970 fixed (Restraining __construct() access level in subclass gives a fatal error).

    Bump your PHP version to 7.2 and you could make it private or protected.

提交回复
热议问题