Repository navigation
Added generics to 2 methods for better PHPStan checks
What's Changed
Added @template annotations to getSegmentsByClass() and getFirstSegmentInstanceByClass(). PHPStan/Psalm/IDEs can now recognize the exact Segment subclass returned, eliminating the need for manual type casting or @var annotations.
Full Changelog: 4.0.1...4.0.2