File "CallTimePassByReferenceUnitTest.inc"
Full Path: /home/warrior1/public_html/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions/CallTimePassByReferenceUnitTest.inc
File size: 679 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
class myclass extends yourclass implements someint {
function myfunc($var) {
echo $var;
}
}
$myvar = true;
myfunc(&$myvar);
myfunc($myvar);
$this->myfunc(&$myvar);
$this->myfunc($myvar);
myclass::myfunc(&$myvar);
myclass::myfunc($myvar);
while(testfunc($var1, &$var2, $var3, &$var4) === false) {
}
sprintf("0%o", 0777 & $p);
$foo(&$myvar);
if (is_array($foo = &$this->bar())) {
}
Hooks::run( 'SecondaryDataUpdates', [ $title, $old, $recursive, $parserOutput, &$updates ] );
$foo = Bar(&$fooBar);
myfunc($myvar&$myvar);
myfunc($myvar[0]&$myvar);
myfunc(myclass::MY_CONST&$myvar);
myfunc(MY_CONST&$myvar);
efg( true == &$b );
efg( true === &$b );