mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Do not try and load fixtures from directories, fixes PHP 7.4 build errors
This commit is contained in:
parent
d1c927ff23
commit
89eb6c88b2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user