Skip to content
Snippets Groups Projects
Commit 15831cc8 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

only allow closures, fixes #2424

Closes #2424

Merge request studip/studip!1622
parent 9b2e8255
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ class FieldsetFilter extends \Neomerx\JsonApi\Representation\FieldSetFilter ...@@ -36,7 +36,7 @@ class FieldsetFilter extends \Neomerx\JsonApi\Representation\FieldSetFilter
*/ */
private function resolveValue($value) private function resolveValue($value)
{ {
if (!is_string($value) && is_callable($value)) { if ($value instanceof \Closure) {
return $value(); return $value();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment