Skip to content

Conversation

@DanielEScherzer
Copy link
Contributor

Technically they work fine when called non-statically, but doing so is generally discouraged

Technically they work fine when called non-statically, but doing so is generally discouraged
Copy link
Contributor

@KorvinSzanto KorvinSzanto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this method is being called on an instance, either variant works fine and is perfectly allowed. That said, we already demonstrate ->someMethod() so we'd be better off using the paamneku.

@Crell Crell merged commit 2d833d8 into php-fig:master Sep 10, 2025
@Crell
Copy link
Collaborator

Crell commented Sep 10, 2025

Thanks, @DanielEScherzer!

@DanielEScherzer DanielEScherzer deleted the patch-2 branch September 11, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants