Compare commits
4 Commits
940ef6c8b9
...
521e84a93b
Author | SHA1 | Date |
---|---|---|
Steve Boyd | 521e84a93b | |
Steve Boyd | 5c8070044c | |
Maxime Rainville | 8e3f71afb7 | |
Steve Boyd | fe5e87598f |
|
@ -528,7 +528,10 @@ class TestSessionEnvironment
|
|||
public function getState()
|
||||
{
|
||||
$path = Director::getAbsFile($this->getFilePath());
|
||||
return (file_exists($path ?? '')) ? json_decode(file_get_contents($path)) : new stdClass;
|
||||
if (file_exists($path ?? '')) {
|
||||
return json_decode(file_get_contents($path)) ?: new stdClass;
|
||||
}
|
||||
return new stdClass;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue