github-actions · GitHub

@Bilge

@Bilge

Bilge marked this pull request as ready for review

July 7, 2024 15:27

@Bilge

@Bilge Bilge changed the title Added static classes RFC: Static class

Jul 7, 2024

iluuu1994

@Bilge

Added compile-time check to enforce all methods must be declared static in a static class.
Added compile-time mutual-exclusivity check for static classes marked with abstract or readonly modifiers.
Added compile-time check to preclude static class inheriting from non-static class and vice-versa.
Added compile-time check to preclude static class using a trait with non-static properties or methods.
Fixed ZEND_ACC_IMPLICIT_ABSTRACT_CLASS collision with ZEND_ACC_STATIC.
Fix reflection test.

@Bilge

Improved a couple of static class tests per feedback.

@Bilge

@Bilge

@ndossche

Read the original on github.com ↗