File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed
code_samples/api/rest_api/src/Rest Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 99
1010class GreetingInput extends BaseParser
1111{
12- public function parse (array $ data , ParsingDispatcher $ parsingDispatcher )
12+ public function parse (array $ data , ParsingDispatcher $ parsingDispatcher ): mixed
1313 {
1414 if (!isset ($ data ['Salutation ' ])) {
1515 throw new Exceptions \Parser ("Missing or invalid 'Salutation' element for Greeting. " );
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public function __construct(URLAliasService $urlAliasService)
1717 $ this ->urlAliasService = $ urlAliasService ;
1818 }
1919
20- public function visit (Visitor $ visitor , Generator $ generator , $ data )
20+ public function visit (Visitor $ visitor , Generator $ generator , $ data ): void
2121 {
2222 // Not using $generator->startObjectElement to not have the XML Generator adding its own media-type attribute with the default vendor
2323 $ generator ->startHashElement ('Location ' );
Original file line number Diff line number Diff line change @@ -210,12 +210,6 @@ parameters:
210210 count : 1
211211 path : code_samples/api/rest_api/src/Rest/ValueObjectVisitor/Greeting.php
212212
213- -
214- message : ' #^Method App\\Rest\\ValueObjectVisitor\\RestLocation\:\:visit\(\) has no return type specified\.$#'
215- identifier : missingType.return
216- count : 1
217- path : code_samples/api/rest_api/src/Rest/ValueObjectVisitor/RestLocation.php
218-
219213 -
220214 message : ' #^Parameter \#1 \.\.\.\$arrays of function array_merge expects array, iterable\<Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\URLAlias\> given\.$#'
221215 identifier : argument.type
You can’t perform that action at this time.
0 commit comments