This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
I like to write strictly typed PHP, or at least as much as possible. Primarily this boils down to using PHPStan . One aspect where I find this challenging is Laravel Collections . Specifically creating single-type Collections. For example, a WidgetCollection should guarantee that the collection only ever contains instances of Widget : /** @extends \Illuminate\Support\Collection< Widget > */ class…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.