Questions tagged «late-static-binding»

3
新自我与新静态
我正在将PHP 5.3库转换为可在PHP 5.2上使用。阻碍我前进的主要因素是使用后期静态绑定,例如return new static($options);,如果将其转换为,return new self($options)将得到相同的结果吗? new self和之间有什么区别new static?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.