Skip to content

Commit

Permalink
Update src/Illuminate/Database/DatabaseServiceProvider.php
Browse files Browse the repository at this point in the history
Use default config value instead of validating config

Co-authored-by: Dries Vints <dries@vints.io>
  • Loading branch information
TomHAnderson and driesvints committed Dec 14, 2020
1 parent 382445f commit cff3705
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Illuminate/Database/DatabaseServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@ protected function registerDBALTypes()
return;
}

$types = config('database.dbal.types');

if (! is_array($types)) {
return;
}
$types = config('database.dbal.types', []);

foreach ($types as $typeName => $typeClassDefinition) {
Type::addType($typeName, $typeClassDefinition);
Expand Down

0 comments on commit cff3705

Please sign in to comment.