Skip to content

Commit

Permalink
test for f20c5fb
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmisek committed Jul 25, 2022
1 parent f20c5fb commit 1e47a4b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/functions/param_out_003_default.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace T253;

class X {
function foo(&$matches = null) {
$matches = 123;
}
}

function test($p) {
$p->foo($matches);
echo $matches;
}

test( new X );

//
echo 'Done.';

0 comments on commit 1e47a4b

Please sign in to comment.