Skip to content

Commit

Permalink
fix 2 tests for PHP 8.4 (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
andypost authored Sep 6, 2024
1 parent 0b76126 commit cb03803
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/tests/post_hook_returns_cloned_modified_object.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ opentelemetry
class Foo
{
public ?string $a = null;
public function __construct(string $a = null)
public function __construct(string|null $a = null)
{
$this->a = $a;
}
Expand Down
4 changes: 2 additions & 2 deletions ext/tests/span_attribute/function_params_non_simple.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ foo(
null,
);
?>
--EXPECT--
--EXPECTF--
string(3) "pre"
array(4) {
["one"]=>
Expand All @@ -46,7 +46,7 @@ array(4) {
object(stdClass)#1 (0) {
}
["three"]=>
object(Closure)#2 (0) {
object(Closure)#2 (%d) {%A
}
["four"]=>
NULL
Expand Down

0 comments on commit cb03803

Please sign in to comment.