FIX Do not try and load fixtures from directories, fixes PHP 7.4 build errors

This commit is contained in:
Robbie Averill 2019-07-26 10:03:02 +02:00
parent d1c927ff23
commit 89eb6c88b2

View File

@ -136,7 +136,7 @@ class YamlFixture
if (isset($this->fixtureString)) {
$fixtureContent = $parser->parse($this->fixtureString);
} else {
if (!file_exists($this->fixtureFile)) {
if (!file_exists($this->fixtureFile) || is_dir($this->fixtureFile)) {
return;
}