I am running psalm in a symfony project and getting the above Error, below is the method definition but I have no idea what to adjust in order to fi ...
I am running psalm in a symfony project and getting the above Error, below is the method definition but I have no idea what to adjust in order to fi ...
I want to define object shape for autocompletion in PhpStorm. for example: for arrays exists docblock: and when I type: IDE autocompletes it ...
My Visual Studio Code shows "undefined method". I want to know is it possible to "fix" it with some VSC settings or maybe there is a PHP solution. I h ...
I have a mehtod that returns timestamps. I want to do something like this: However, I don't think @return array<int, timestamp> is valid. Wh ...
I could see this PHPDoc block in the FakerPHP/Faker package, and I'm not aware what does @template mean? you can find it in the package's main branch ...
Say I have a class Book which has a property on it called $chapters. In the implementation I'm working with, this property is represented by a generic ...
I see both angle brackets and curly braces used in PHP docblocks used when typehinting arrays. /** * @return array<name:int,link:string,items:arr ...
I'm getting objects from JSON string in my PHP code. I want my IDE (NetBeans) to know the parameters of the objects without creating special class for ...
I'm having an interface from a 3rd party library (A). I'm creating an alias bar for a property foo in my project. This works fine, but I also want my ...
I am trying to catch a custom exception, but keep getting an Exception 'CustomException' is never thrown in the corresponding try block inspection err ...
How can I avoid this "error": Basically docblocks for DataObject::get_one says that it returns a DataObject, which is true, but most of the time it ...
Generaly, using DocBlock in PHP is one of the best practices. It was very usefull for previous versions of PHP (lesser then PHP 7.3 or especially 7.4) ...
I have a project that utilised MVC where the view file is inherting $this which refers to a view class attached to the controller. Helper classes hav ...
I have a Simulink model with a DocBlock inside and i would like to create a script to write inside this DocBlock. I already have this code : The p ...
I am using codeception and running multiple sets of example data. I am sending in multiple accept headers, one of which is "*/*". so the example code ...
TL;DR How can I document a constant that is defined in external code using PhpDoc/DocBlocks so that it will not show up as an undefined variable in s ...
I use docblocks for documenting function methods, classes... the usual. I found myself using the adapter pattern, as such, all my adapters implement ...
The documentation for all other files are being generated, but for src/Pagination/Paginator.php, it isn't. This is a Symfony 4 application. The relat ...
I am building an app that implements custom docblock annotations using the Doctrine Annotations library. For PHPUnit testing, is it possible to creat ...
I am new to Python coming from PHP, I know Python has Docstrings, but how can I do this on class variables? Let's say in PHP I have: Now how would ...