diff --git a/README.md b/README.md index 45c2a18..a2565e7 100644 --- a/README.md +++ b/README.md @@ -96,8 +96,15 @@ For this case, EloquentPhpDoc will always return `mixed` - v1.0.0 - First version - View & Update phpDoc for a single Model at a time -- v1.1.0 (planned) - - Bulk replace by namespace +- v1.1.0 + - `--short-class` + - Fixed some issues +- v1.1.1 + - Fixed issue when generating a table that has `enum` column +- v1.1.2 + - Fixed issue when first-time install the library that made Laravel discovery went wrong. +- v1.2.0 (in development) + - Bulk generating from `--path=` ## Contribute to the library diff --git a/composer.json b/composer.json index 37f7a6c..3252470 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "sethphat/eloquent-docs", - "version": "1.1.1", + "version": "1.1.2", "description": "Generate PHPDoc scope for your Eloquent models", "type": "library", "require": { diff --git a/src/EloquentDocsServiceProvider.php b/src/EloquentDocsServiceProvider.php index 49fe479..0649264 100644 --- a/src/EloquentDocsServiceProvider.php +++ b/src/EloquentDocsServiceProvider.php @@ -15,10 +15,12 @@ public function boot(): void EloquentDocsGeneratorCommand::class, ]); - DB::connection() - ->getDoctrineConnection() - ->getDatabasePlatform() - ->registerDoctrineTypeMapping('enum', 'string'); + if (interface_exists('Doctrine\DBAL\Driver')) { + DB::connection() + ->getDoctrineConnection() + ->getDatabasePlatform() + ->registerDoctrineTypeMapping('enum', 'string'); + } } } } \ No newline at end of file