Skip to content

Commit 50c299f

Browse files
authored
Update DatabaseTypeTask.php to use TypeFactory
Cake\Database\Type is deprecated in favor of Cake\Database\TypeFactory
1 parent 7a793c9 commit 50c299f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Generator/Task/DatabaseTypeTask.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace IdeHelper\Generator\Task;
44

5-
use Cake\Database\Type;
65
use Cake\Database\TypeFactory;
76
use IdeHelper\Generator\Directive\ExpectedArguments;
87
use IdeHelper\Generator\Directive\Override;
@@ -55,7 +54,7 @@ protected function getTypes(): array {
5554
$types = [];
5655

5756
try {
58-
$allTypes = Type::buildAll();
57+
$allTypes = TypeFactory::buildAll();
5958
} catch (Throwable $exception) {
6059
return $types;
6160
}

0 commit comments

Comments
 (0)