Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-52335

PHP7 changes in uniform variable syntax

    XMLWordPrintable

    Details

      Description

      https://github.com/tpunt/PHP7-Reference#uniform-variable-syntax

      Examples:

                              // old meaning            // new meaning
      $$foo['bar']['baz']     ${$foo['bar']['baz']}     ($$foo)['bar']['baz']
      $foo->$bar['baz']       $foo->{$bar['baz']}       ($foo->$bar)['baz']
      $foo->$bar['baz']()     $foo->{$bar['baz']}()     ($foo->$bar)['baz']()
      Foo::$bar['baz']()      Foo::{$bar['baz']}()      (Foo::$bar)['baz']()
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                marina Marina Glancy
                Reporter:
                marina Marina Glancy
                Peer reviewer:
                Dan Poltawski
                Integrator:
                David Monllaó
                Tester:
                Adrian Greeve
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Adrian Greeve, Mihail Geshoski, Peter Dias, Jake Dallimore, Jun Pataleta, Ryan Wyllie, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Dec/15