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, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

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