File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 1- // Jest Snapshot v1, https://goo.gl/fbAQLP
1+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22
33exports [` assignref.php 1` ] = `
44====================================options=====================================
@@ -42,6 +42,7 @@ $cached_var = &drupal_static(__FUNCTION__);
4242
4343$test = ['key' => & $value];
4444$test = ['key' => & $value['something']];
45+ $x = $y =& $z;
4546
4647=====================================output=====================================
4748<?php
@@ -56,7 +57,7 @@ class Foo
5657 }
5758}
5859
59- $a = & $b / 100;
60+ ( $a = & $b) / 100;
6061
6162$var =
6263 $arr[
@@ -96,6 +97,7 @@ $cached_var = &drupal_static(__FUNCTION__);
9697
9798$test = ["key" => & $value];
9899$test = ["key" => & $value["something"]];
100+ $x = $y = & $z;
99101
100102================================================================================
101103` ;
Original file line number Diff line number Diff line change @@ -34,3 +34,4 @@ public function test() {
3434
3535$ test = ['key ' => &$ value ];
3636$ test = ['key ' => &$ value ['something ' ]];
37+ $ x = $ y =& $ z ;
Original file line number Diff line number Diff line change @@ -672,14 +672,14 @@ $test = $var = &$test;
672672$test = $var = & $test;
673673
674674$a = ($b = $var) + 5;
675- $a = $b = & $var + 5;
675+ $a = ( $b = & $var) + 5;
676676
677677$a = ($b = $var) || 5;
678- $a = $b = & $var || 5;
678+ $a = ( $b = & $var) || 5;
679679
680- if ($foo = & $bar && count($foo) > 0) {
680+ if (( $foo = & $bar) && count($foo) > 0) {
681681}
682- if ($foo = & test1() && test2($foo) > 0) {
682+ if (( $foo = & test1() ) && test2($foo) > 0) {
683683}
684684
685685call($a = & $b);
@@ -720,14 +720,14 @@ $test = $var = &$test;
720720$test = $var = & $test;
721721
722722$a = ($b = $var) + 5;
723- $a = $b = & $var + 5;
723+ $a = ( $b = & $var) + 5;
724724
725725$a = ($b = $var) || 5;
726- $a = $b = & $var || 5;
726+ $a = ( $b = & $var) || 5;
727727
728- if ($foo = & $bar && count($foo) > 0) {
728+ if (( $foo = & $bar) && count($foo) > 0) {
729729}
730- if ($foo = & test1() && test2($foo) > 0) {
730+ if (( $foo = & test1() ) && test2($foo) > 0) {
731731}
732732
733733call($a = & $b);
You can’t perform that action at this time.
0 commit comments