I’d settle for code completion on service container calls.
Which wouldn’t be a problem if people didn’t hilariously insist on using stringly-typed containers for no reason (regular typed methods work fine).
If you use PHPStorm then you can use .phpstorm.meta.php to map arguments to return types. Depending on what framework you use, there are ways to get this file generated for you, e.g. for Laravel.
Great article! Found a typo (fixes instead of fixed):
Array shapes are like arrays but with fixes keys, so that you can define the types of each key in the PHPDocs.
but with fixes
fixed, fixed 😉
Members
Online