modifier.test-fail 775 B

1234567891011121314151617181920212223242526272829
  1. Invalid modifier combination
  2. -----
  3. <?php class A { public public $a; }
  4. -----
  5. Multiple access type modifiers are not allowed on line 1
  6. -----
  7. <?php class A { public protected $a; }
  8. -----
  9. Multiple access type modifiers are not allowed on line 1
  10. -----
  11. <?php class A { abstract abstract a(); }
  12. -----
  13. Multiple abstract modifiers are not allowed on line 1
  14. -----
  15. <?php class A { static static $a; }
  16. -----
  17. Multiple static modifiers are not allowed on line 1
  18. -----
  19. <?php class A { final final a() {} }
  20. -----
  21. Multiple final modifiers are not allowed on line 1
  22. -----
  23. <?php class A { abstract final a(); }
  24. -----
  25. Cannot use the final and abstract modifier at the same time on line 1
  26. -----
  27. <?php abstract final class A { }
  28. -----
  29. Syntax error, unexpected T_FINAL, expecting T_CLASS on line 1