Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21912

Change API to use scalar type hints and/or validate scalars

    XMLWordPrintable

Details

    Description

      If you use a not acceptable value in newLocationCreateStruct() you will get a the following Fatal error instead of an exception

      [Symfony\Component\Debug\Exception\ContextErrorException]                                                                                                                                               
        Catchable Fatal Error: Object of class eZ\Publish\Core\Repository\Values\Content\Location could not be converted to string in /var/www/html/ezpublish5/vendor/tedivm/stash/src/Stash/Item.php line 484
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Joao.Pingo-obsolete@ez.no Joao Pingo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 1 hour, 10 minutes
                1d 1h 10m