Skip to content

Commit 989b034

Browse files
committed
chore: refine some tests for php8
1 parent 8e90e20 commit 989b034

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/helpers_for_test.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function test() {
1313
return 'testMethod OK!';
1414
}
1515

16-
function helper2($arg) {
16+
static function helper2($arg) {
1717
return is_array($arg) ? '=Array=' : "=$arg=";
1818
}
1919

@@ -25,7 +25,7 @@ function __call($method, $args) {
2525
class foo {
2626
public $prop = 'Yes!';
2727

28-
function bar() {
28+
static function bar() {
2929
return 'OK!';
3030
}
3131
}

tests/regressionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function testIssues($issue)
2121
$context = LightnCandy::getContext();
2222
$parsed = print_r(LightnCandy::$lastParsed, true);
2323
if (count($context['error'])) {
24-
$this->fail('Compile failed due to:' . print_r($context['error'], true) . "\nPARSED: $parsed");
24+
$this->fail('Compile failed due to: ' . print_r($context['error'], true) . "\nPARSED: $parsed");
2525
}
2626
$renderer = LightnCandy::prepare($php);
2727

0 commit comments

Comments
 (0)