News for hackers. Stuff that matters.
Re:Parsoid in PHP, or There and Back Again by egeozcan on Thursday February 13, 2020 @10:37AM (#22318519)
Why would you add a docblock on top of your already typed functions? Maybe just description would be cool but phpdoc with all the duplicated parameter definitions? I think it's unnecessary but would love to hear other perspectives.
Re:Parsoid in PHP, or There and Back Again by Eremotherium on Thursday February 13, 2020 @12:05PM (#22319307)
You can add e.g. descriptions to your params if needed. Also phpdoc understands types like string[] for arrays and union types like (int|string) for untyped params.