Skip to content

Commit 3bd8f66

Browse files
authored
IBX-8540: Fixed building content type field def. list response (#180)
1 parent 8615d63 commit 3bd8f66

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,12 +1710,6 @@ parameters:
17101710
count: 1
17111711
path: src/lib/Server/Controller/ContentType.php
17121712

1713-
-
1714-
message: '#^Parameter \#2 \$fieldDefinitions of class Ibexa\\Rest\\Server\\Values\\FieldDefinitionList constructor expects array\<Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\FieldDefinition\>, Ibexa\\Contracts\\Core\\Repository\\Values\\ContentType\\FieldDefinitionCollection given\.$#'
1715-
identifier: argument.type
1716-
count: 1
1717-
path: src/lib/Server/Controller/ContentType.php
1718-
17191713
-
17201714
message: '#^Parameter \#2 \$offset of function array_slice expects int, string given\.$#'
17211715
identifier: argument.type

src/lib/Server/Controller/ContentType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ public function loadContentTypeDraftFieldDefinitionList($contentTypeId)
606606

607607
return new Values\FieldDefinitionList(
608608
$contentTypeDraft,
609-
$contentTypeDraft->getFieldDefinitions()
609+
$contentTypeDraft->getFieldDefinitions()->toArray(),
610610
);
611611
}
612612

0 commit comments

Comments
 (0)