โ˜… The mixin PHP DocBlock

1 ยท Freek Van der Herten ยท Oct. 14, 2019, 11:19 a.m.
When using PHP, you've probably used DocBlocks. They can be used to add additional information that can't be inferred by looking at the source code alone. DocBlocks can be used by IDEs, like PhpStorm, to improve autocomplete suggestions. In this blogpost, I'd like to highlight a not so well known DocBlock: mixin. A first example of a DocBlock # Before looking at a mixin DocBlock, let's first get a feel of how DocBlocks can make autocompletion better. /** * @return \App\Models\Post[] */ public...