1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Rules;
4:
5: /**
6: * An error whose existence depends on files other than the one being analysed - a path named in the
7: * code that has to exist, a data file read at analysis time. The result cache watches the files
8: * listed here and re-analyses the file the error is reported in when one of them appears, changes or
9: * is deleted, which nothing else would do: the dependency graph is built from reflected symbols, and
10: * a path is not a symbol.
11: *
12: * Paths must be absolute and are watched whether or not they exist, so an error about a missing file
13: * is cleared by that file being created.
14: *
15: * @api
16: * @api-do-not-implement
17: */
18: interface FileDependenciesRuleError extends RuleError
19: {
20:
21: /**
22: * @return list<string>
23: */
24: public function getFileDependencies(): array;
25:
26: }
27: