DiscoverNo CompromisesWhen should you use final classes or private properties?
When should you use final classes or private properties?

When should you use final classes or private properties?

Update: 2023-06-13
Share

Description

The discussion of final classes was a hot topic recently. We had planned on discussing this even before it came up on Twitter, but here is our unsolicited opinion.

Is there some use case we missed? Aaron wants to hear about it.

Show notes

  • (00:00 ) - Final classes, the hot topic on Twitter

  • (01:00 ) - Aaron's opinion has evolved over the years

  • (03:15 ) - Packages vs applications

  • (04:00 ) - What about making PHPStan happy?

  • (06:45 ) - What about reducing support burden on package maintainers?

  • (10:05 ) - What about private properties?

  • (11:15 ) - Aaron wants to be wrong

  • (11:45 ) - Silly bit


Want to hire us and argue about it? Book a call
Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

When should you use final classes or private properties?

When should you use final classes or private properties?

Joel Clermont and Aaron Saray