@@ -46,29 +46,29 @@ $m2 = ['TestFormCallbackParameters', 'doSomethingWithArray'];
4646$ m3 = ['TestFormCallbackParameters ' , 'doSomething ' ];
4747
4848// Test the closure second parameter to be an ArrayHash instance by default
49- $ f1 = function ($ form , $ values ) use (& $ types ) {
49+ $ f1 = function ($ form , $ values ) use (&$ types ) {
5050 $ types [] = $ form instanceof Form;
5151 $ types [] = $ values instanceof ArrayHash;
5252};
5353
5454// Test the closure second parameter to be an array by type-hint
55- $ f2 = function ($ form , array $ values ) use (& $ types ) {
55+ $ f2 = function ($ form , array $ values ) use (&$ types ) {
5656 $ types [] = $ form instanceof Form;
5757 $ types [] = is_array ($ values );
5858};
5959
6060// Test the closure second parameter to be an ArrayHash instance by default again
61- $ f3 = function ($ form , $ values ) use (& $ types ) {
61+ $ f3 = function ($ form , $ values ) use (&$ types ) {
6262 $ types [] = $ form instanceof Form;
6363 $ types [] = $ values instanceof ArrayHash;
6464};
6565
6666// Test the second parameter in ArrayHash form to be immutable
67- $ f4 = function ($ form , $ values ) use (& $ types ) {
67+ $ f4 = function ($ form , $ values ) use (&$ types ) {
6868 $ values ->text = 'b ' ;
6969};
7070$ arrayHashIsImmutable = [];
71- $ f5 = function ($ form , $ values ) use (& $ arrayHashIsImmutable ) {
71+ $ f5 = function ($ form , $ values ) use (&$ arrayHashIsImmutable ) {
7272 $ arrayHashIsImmutable [] = $ values ->text === 'a ' ;
7373};
7474
0 commit comments