staticMethod.test-fail 360 B

12345678910111213
  1. Some special methods cannot be static
  2. -----
  3. <?php class A { static function __construct() {} }
  4. -----
  5. "__construct" method cannot be static on line 1
  6. -----
  7. <?php class A { static function __destruct() {} }
  8. -----
  9. "__destruct" method cannot be static on line 1
  10. -----
  11. <?php class A { static function __clone() {} }
  12. -----
  13. "__clone" method cannot be static on line 1