Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15291

Allow short array notation in event declarations

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 4.0.0-a1, 3.2.2-RC1
    • 3.2.1
    • None

      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.

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

              Created:
              Updated:
              Resolved: