mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
added DatatypeEnum tests; repaired the other test for local execution; small bug fixes
This commit is contained in:
@@ -66,9 +66,9 @@ class DatatypeEnum
|
||||
return $type;
|
||||
}
|
||||
}
|
||||
|
||||
return self::__DEFAULT;
|
||||
}
|
||||
|
||||
return self::__DEFAULT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,7 +23,11 @@ trait DatatypeTrait {
|
||||
* @return string|false
|
||||
*/
|
||||
private function getMostFrequentDataypeForColumn($datatypes) {
|
||||
array_filter($datatypes);
|
||||
array_filter($datatypes);
|
||||
|
||||
if (empty($datatypes)){
|
||||
return false;
|
||||
}
|
||||
|
||||
// workaround because array_count_values($datatypes) does not work anymore :-(
|
||||
foreach ($datatypes as $type) {
|
||||
|
||||
Reference in New Issue
Block a user