Skip to content

Commit

Permalink
Docs fix model visitor (#6219)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanyanwow committed Oct 17, 2023
1 parent e5d7ae8 commit 78c477f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Commands/Ast/ModelUpdateVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ protected function getProperty($column): array
return [$name, $type, $comment];
}

/**
* Used by `casts` attribute.
*/
protected function formatDatabaseType(string $type): ?string
{
return match ($type) {
Expand All @@ -343,6 +346,9 @@ protected function formatDatabaseType(string $type): ?string
};
}

/**
* Used by `@property` docs.
*/
protected function formatPropertyType(string $type, ?string $cast): ?string
{
if (! isset($cast)) {
Expand Down

0 comments on commit 78c477f

Please sign in to comment.