staticMethod.test-fail 714 B

12345678910111213141516171819202122232425
  1. Some special methods cannot be static
  2. -----
  3. <?php class A { static function __construct() {} }
  4. -----
  5. Constructor __construct() cannot be static on line 1
  6. -----
  7. <?php class A { static function __destruct() {} }
  8. -----
  9. Destructor __destruct() cannot be static on line 1
  10. -----
  11. <?php class A { static function __clone() {} }
  12. -----
  13. Clone method __clone() cannot be static on line 1
  14. -----
  15. <?php class A { static function __CONSTRUCT() {} }
  16. -----
  17. Constructor __CONSTRUCT() cannot be static on line 1
  18. -----
  19. <?php class A { static function __Destruct() {} }
  20. -----
  21. Destructor __Destruct() cannot be static on line 1
  22. -----
  23. <?php class A { static function __cLoNe() {} }
  24. -----
  25. Clone method __cLoNe() cannot be static on line 1