Skip to content

Commit 7d6b367

Browse files
committed
Document late static binding
webonyx#1380
1 parent ad49ce0 commit 7d6b367

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CONTRIBUTING.md

+4
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ We cannot foresee every possible use case in advance, extending the code should
8080

8181
Always use class member visibility `protected` over `private`.
8282

83+
#### Late Static Binding
84+
85+
Always use `static::` over `self::` for method calls to enable overriding of static class methods.
86+
8387
#### `final` classes
8488

8589
Prefer `final` classes in [tests](tests), but never use them in [src](src).

0 commit comments

Comments
 (0)