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

    • Type: Story
    • Status: Backlog
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.2-rc1
    • Fix Version/s: QA tracked issues
    • Labels:
    • Environment:

      PHP 5.3.3
      CentOS 6.4
      Mysql 5.1.69

      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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Joao.Pingo@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