How to tell PhpStorm that function argument is file path

In PhpStorm (and other JetBrains IDE), is it possible to make function attributes as file / resource path?

E.g. in this function:

function mix($file): string
  // check mix maninfest for $file and return path from mix manifest
  return $fire_path_with_cachebuster;

I'd like PHP to suggest files in the project as I define $file attribute when calling mix function.

Please sign in to leave a comment.