File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ public function setMaximumValue(mixed $maximumValue): self
162162 return $ this ;
163163 }
164164
165+ /** @param ?class-string $enumType */
165166 public function setEnumType (?string $ enumType ): self
166167 {
167168 $ this ->enumType = $ enumType ;
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public function testGet(): void
4242 self ::assertEquals ('utf8 ' , $ column ->getPlatformOption ('charset ' ));
4343 self ::assertFalse ($ column ->hasPlatformOption ('collation ' ));
4444 self ::assertTrue ($ column ->hasPlatformOption ('enumType ' ));
45- self ::assertEquals (' FooEnum ' , $ column ->getPlatformOption ('enumType ' ));
45+ self ::assertEquals (self ::class , $ column ->getPlatformOption ('enumType ' ));
4646 }
4747
4848 public function testToArray (): void
@@ -62,7 +62,7 @@ public function testToArray(): void
6262 'comment ' => '' ,
6363 'values ' => [],
6464 'charset ' => 'utf8 ' ,
65- 'enumType ' => ' FooEnum ' ,
65+ 'enumType ' => self ::class ,
6666 ];
6767
6868 self ::assertSame ($ expected , $ this ->createColumn ()->toArray ());
@@ -101,7 +101,7 @@ public function createColumn(): Column
101101 ->setFixed (true )
102102 ->setDefaultValue ('baz ' )
103103 ->setCharset ('utf8 ' )
104- ->setEnumType (' FooEnum ' )
104+ ->setEnumType (self ::class )
105105 ->create ();
106106 }
107107
You can’t perform that action at this time.
0 commit comments