I'm relatively new to PHP and have been using PHPDoc notation to document my code. However, I'm a bit confused about how to declare the type for local variables using PHPDoc notation.
I know that PHP is a dynamically typed language, but I've seen examples where developers use PHPDoc to specify the type of a variable. I think it can be helpful for code readability and can also assist with code analysis.
Can someone please guide me on how to declare the type for local variables using PHPDoc? It would be great if you could provide some examples as well.
Thanks in advance!