Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15291

Allow short array notation in event declarations

    XMLWordPrintable

    Details

      Description

      With PHP 5.4 being required for phpBB >= 3.2, event declarations should be able to use the short array notation, e.g.

      $vars = [...];
      extract($this->dispatcher->trigger_event(..., compact($vars)));
      

      The current test suite throws an error if it doesn't find the old array notation.

        Attachments

          Activity

            People

            Assignee:
            Marc Marc
            Reporter:
            JoshyPHP JoshyPHP
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: