Skip to content

Commit

Permalink
Update ClassMetadataInfo stub with type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 16, 2022
1 parent 820606a commit 251d955
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion stubs/ORM/Mapping/ClassMetadataInfo.stub
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,31 @@ use ReflectionClass;

/**
* @template-covariant T of object
* @implements ClassMetadata<T>
* @template-implements ClassMetadata<T>
* @psalm-type FieldMapping = array{
* type: string,
* fieldName: string,
* columnName: string,
* length?: int,
* id?: bool,
* nullable?: bool,
* notInsertable?: bool,
* notUpdatable?: bool,
* generated?: string,
* enumType?: class-string<BackedEnum>,
* columnDefinition?: string,
* precision?: int,
* scale?: int,
* unique?: string,
* inherited?: class-string,
* originalClass?: class-string,
* originalField?: string,
* quoted?: bool,
* requireSQLConversion?: bool,
* declared?: class-string,
* declaredField?: string,
* options?: array<string, mixed>
* }
*/
class ClassMetadataInfo implements ClassMetadata
{
Expand Down

0 comments on commit 251d955

Please sign in to comment.