diff --git a/src/Generators/Base.php b/src/Generators/Base.php index 2d10a0d..2587293 100644 --- a/src/Generators/Base.php +++ b/src/Generators/Base.php @@ -118,6 +118,7 @@ public function getOptions() protected function getGenerator() { $kind = explode('|', $this->kind); + return reset($kind); } diff --git a/src/Generators/Generic.php b/src/Generators/Generic.php index 607c6bd..97659b0 100644 --- a/src/Generators/Generic.php +++ b/src/Generators/Generic.php @@ -30,6 +30,10 @@ final class Generic extends Base */ public function generate() { + if ($this->kind === false) { + return $this->kind; + } + // Only try and use Faker when there are no spaces in the string if (!is_string($this->getGenerator()) || strpos($this->getGenerator(), ' ') !== false) { return $this->getGenerator();