you can use the more compact form for inline type hints like this: /* @var SplFileInfo $fileInfo */