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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 5.2-rc1
    • 5.2-alpha1
    • Platform stack
    • 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

            Unassigned Unassigned
            bchoquet bchoquet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: