mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Throw more specific exception
This commit is contained in:
@@ -54,7 +54,7 @@ trait DatatypeTrait {
|
|||||||
$this->data = $this->parse_string();
|
$this->data = $this->parse_string();
|
||||||
}
|
}
|
||||||
if (!is_array($this->data)) {
|
if (!is_array($this->data)) {
|
||||||
throw new \Exception('No data set yet.');
|
throw new \UnexpectedValueException('No data set yet.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user