@@ -15,7 +15,7 @@ public function testScalarIsSetFromArray()
1515 public function getModelDefinition (): array
1616 {
1717 return [
18- 'foo ' => [ 'model ' => null , 'array ' => false ]
18+ 'foo ' => [ 'model ' => null , 'enum ' => null , ' array ' => false ]
1919 ];
2020 }
2121 };
@@ -47,7 +47,7 @@ public function testValidAbsentFieldIsUntouchedInModelFromArray()
4747 public function getModelDefinition (): array
4848 {
4949 return [
50- 'foo ' => [ 'model ' => null , 'array ' => true ]
50+ 'foo ' => [ 'model ' => null , 'enum ' => null , ' array ' => true ]
5151 ];
5252 }
5353 };
@@ -65,7 +65,7 @@ public function testRelatedModelIsCreatedFromArray()
6565 public function getModelDefinition (): array
6666 {
6767 return [
68- 'foo ' => [ 'model ' => null , 'array ' => false ]
68+ 'foo ' => [ 'model ' => null , 'enum ' => null , ' array ' => false ]
6969 ];
7070 }
7171 };
@@ -85,7 +85,7 @@ public function __construct($relationStubClass = null)
8585 public function getModelDefinition (): array
8686 {
8787 return [
88- 'relation ' => [ 'model ' => $ this ->relationStubClass , 'array ' => false ]
88+ 'relation ' => [ 'model ' => $ this ->relationStubClass , 'enum ' => null , ' array ' => false ]
8989 ];
9090 }
9191 };
@@ -122,7 +122,7 @@ public function testRelatedModelArrayIsCreatedFromArray()
122122 public function getModelDefinition (): array
123123 {
124124 return [
125- 'foo ' => [ 'model ' => null , 'array ' => false ]
125+ 'foo ' => [ 'model ' => null , 'enum ' => null , ' array ' => false ]
126126 ];
127127 }
128128 };
@@ -142,7 +142,7 @@ public function __construct($relationStubClass = null)
142142 public function getModelDefinition (): array
143143 {
144144 return [
145- 'relations ' => [ 'model ' => $ this ->relationStubClass , 'array ' => true ]
145+ 'relations ' => [ 'model ' => $ this ->relationStubClass , 'enum ' => null , ' array ' => true ]
146146 ];
147147 }
148148 };
@@ -167,7 +167,7 @@ public function testNonNullScalarFieldIsPresentInArray()
167167 public function getModelDefinition (): array
168168 {
169169 return [
170- 'foo ' => [ 'model ' => null , 'array ' => false ]
170+ 'foo ' => [ 'model ' => null , 'enum ' => null , ' array ' => false ]
171171 ];
172172 }
173173 };
@@ -185,7 +185,7 @@ public function testNullFieldIsOmittedFromArray()
185185 public function getModelDefinition (): array
186186 {
187187 return [
188- 'foo ' => [ 'model ' => null , 'array ' => false ]
188+ 'foo ' => [ 'model ' => null , 'enum ' => null , ' array ' => false ]
189189 ];
190190 }
191191 };
@@ -201,7 +201,7 @@ public function testNullFieldIsPresentInArray()
201201 public function getModelDefinition (): array
202202 {
203203 return [
204- 'foo ' => [ 'model ' => null , 'array ' => false ]
204+ 'foo ' => [ 'model ' => null , 'enum ' => null , ' array ' => false ]
205205 ];
206206 }
207207 };
@@ -217,7 +217,7 @@ public function testModelFieldIsPresentInArray()
217217 public function getModelDefinition (): array
218218 {
219219 return [
220- 'foo ' => [ 'model ' => null , 'array ' => false ]
220+ 'foo ' => [ 'model ' => null , 'enum ' => null , ' array ' => false ]
221221 ];
222222 }
223223 };
@@ -237,7 +237,7 @@ public function __construct($relationStubClass = null)
237237 public function getModelDefinition (): array
238238 {
239239 return [
240- 'relation ' => [ 'model ' => $ this ->relationStubClass , 'array ' => false ]
240+ 'relation ' => [ 'model ' => $ this ->relationStubClass , 'enum ' => null , ' array ' => false ]
241241 ];
242242 }
243243 };
@@ -256,7 +256,7 @@ public function testModelArrayFieldIsPresentInArray()
256256 public function getModelDefinition (): array
257257 {
258258 return [
259- 'foo ' => [ 'model ' => null , 'array ' => false ]
259+ 'foo ' => [ 'model ' => null , 'enum ' => null , ' array ' => false ]
260260 ];
261261 }
262262 };
@@ -276,7 +276,7 @@ public function __construct($relationStubClass = null)
276276 public function getModelDefinition (): array
277277 {
278278 return [
279- 'relations ' => [ 'model ' => $ this ->relationStubClass , 'array ' => true ]
279+ 'relations ' => [ 'model ' => $ this ->relationStubClass , 'enum ' => null , ' array ' => true ]
280280 ];
281281 }
282282 };
@@ -300,7 +300,7 @@ public function testArrayIndicesAreSanitized()
300300 public function getModelDefinition (): array
301301 {
302302 return [
303- 'foo ' => [ 'model ' => null , 'array ' => false ]
303+ 'foo ' => [ 'model ' => null , 'enum ' => null , ' array ' => false ]
304304 ];
305305 }
306306 };
@@ -320,7 +320,7 @@ public function __construct($relationStubClass = null)
320320 public function getModelDefinition (): array
321321 {
322322 return [
323- 'relations ' => [ 'model ' => $ this ->relationStubClass , 'array ' => true ]
323+ 'relations ' => [ 'model ' => $ this ->relationStubClass , 'enum ' => null , ' array ' => true ]
324324 ];
325325 }
326326 };
0 commit comments