Details
-
Bug
-
Resolution: Fixed
-
High
-
3.0.0-beta1, 2.5.3
-
None
Description
Landing page field type throws TypeError instead of InvalidArgumentException in \EzSystems\EzPlatformPageFieldType\FieldType\LandingPage\Type::checkValueStructure
Steps to reproduce
Run the following command: https://gist.github.com/adamwojs/1806a29d42e7615e5cd55cf56a00e1b8
Expected result
Argument '$value->pageZones' is invalid: Number of page zones is different from number of zones in layout.
Actual result
Type error: Too few arguments to function eZ\Publish\Core\Base\Exceptions\InvalidArgumentValue::__construct(), 1 passed in /Users/awojs/Workspace/ezplatf orm-page-fieldtype/src/lib/FieldType/LandingPage/Type.php on line 151 and at least 2 expected