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

ContentView::setTemplateIdentifier throws InvalidArgumentTypeException even with the right type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.2-alpha1
    • Fix Version/s: 5.2-rc1
    • Component/s: Platform stack
    • Labels:
      None

      Description

      Simple logic error, || instead of && :

      if ( !is_string( $templateIdentifier ) || !$templateIdentifier instanceof \Closure )
                  throw new InvalidArgumentType( 'templateIdentifier', 'string or \Closure', $templateIdentifier );
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            bchoquet Benjamin Choquet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: