Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Spec section 4: static methods should be called statically
Technically they work fine when called non-statically, but doing so is generally discouraged
  • Loading branch information
DanielEScherzer authored Sep 10, 2025
commit d26a46a3188253a2a7a30e5a11bf50a11c3cffe5
2 changes: 1 addition & 1 deletion spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ parentheses. For example:

```php
new Foo()->someMethod();
new Foo()->someStaticMethod();
new Foo()::someStaticMethod();
new Foo()->someProperty;
new Foo()::someStaticProperty;
new Foo()::SOME_CONSTANT;
Expand Down