Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2877

Landing page field type throws TypeError instead of InvalidArgumentException

    XMLWordPrintable

    Details

      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

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            adam.wojs@ez.no Adam Wójs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: