Skip to content

Commit cc218ee

Browse files
committed
ReflectionMethod::invoke with constructor should not have any arguments
1 parent 39ea21a commit cc218ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/reflection/tests/ReflectionAttribute_constructor_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $attribute = $rm->getAttributes()[0];
1616
$rm = new ReflectionMethod($attribute, "__construct");
1717

1818
try {
19-
var_dump($rm->invoke($attribute, 0, 1, 2));
19+
var_dump($rm->invoke($attribute));
2020
} catch (ReflectionException $exception) {
2121
echo $exception->getMessage();
2222
}

0 commit comments

Comments
 (0)