Make tests pass on Windows (#1205)

* Make all tests pass cross platform

* Add job to run tests on Windows

* Merge test jobs with conditional Windows step for line endings

* Prefix job name with OS

* Update git lf step if statement

* Exclude all tests for Windows except PHP 8.0

* composer fix-style

Co-authored-by: Barry vd. Heuvel <[email protected]>
Co-authored-by: laravel-ide-helper <[email protected]>
This commit is contained in:
Wim Reckman
2021-08-04 11:22:48 +02:00
committed by GitHub
co-authored by Barry vd. Heuvel laravel-ide-helper
parent b6871d09a4
commit 37f08320ea
5 changed files with 35 additions and 19 deletions
+1 -1
View File
@@ -431,7 +431,7 @@ class ModelsCommand extends Command
$customTypes = $this->laravel['config']->get("ide-helper.custom_db_types.{$platformName}", []);
foreach ($customTypes as $yourTypeName => $doctrineTypeName) {
try {
if(!Type::hasType($yourTypeName)) {
if (!Type::hasType($yourTypeName)) {
Type::addType($yourTypeName, get_class(Type::getType($doctrineTypeName)));
}
} catch (DBALException $exception) {