Skip to content

Commit b11a282

Browse files
committed
Fixing calling callback
1 parent c3a794c commit b11a282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Builder/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function build(
169169

170170
$linkRelated = str_replace('/relationships/', '/', $this->uriToString($uriRelated));
171171

172-
$isValid = call_user_func($linkValidator, [$linkRelated]);
172+
$isValid = call_user_func_array($linkValidator, [$linkRelated]);
173173

174174
if ($isValid === true) {
175175
$encoder->withLinks(array_merge($links, [

0 commit comments

Comments
 (0)