Skip to content

Commit 25061ef

Browse files
committed
Mark some functions as static in tests
1 parent eb357e4 commit 25061ef

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/PEAR_ErrorStack/test_instaticmethod_context.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc';
1212
$stack = &PEAR_ErrorStack::singleton('test');
1313
class stclass
1414
{
15-
function stfunc()
15+
static function stfunc()
1616
{
1717
global $stack, $testline;
1818
$stack->push(3);

tests/PEAR_ErrorStack/test_instaticmethod_context_createfunction.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $a = function() { $GLOBALS["stack"]->push(3); };
1414
$testline = __LINE__ - 1;
1515
class test8
1616
{
17-
function test7()
17+
static function test7()
1818
{
1919
global $a;
2020
$a();

tests/PEAR_ErrorStack/test_instaticmethod_context_createfunction_staticPush.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $a = function() { PEAR_ErrorStack::staticPush("test", 3); };
1414
$testline = __LINE__ - 1;
1515
class test8
1616
{
17-
function test7()
17+
static function test7()
1818
{
1919
global $a;
2020
$a();

0 commit comments

Comments
 (0)