Forces Finder to obey .gitignore and ignore files based on rules listed there.
This option is disabled by default.
$this
public function ignoreVCSIgnored(bool $ignoreVCSIgnored) : static { if ($ignoreVCSIgnored) { $this->ignore |= static::IGNORE_VCS_IGNORED_FILES; } else { $this->ignore &= ~static::IGNORE_VCS_IGNORED_FILES; } return $this; }