Skip to content

Commit ad11910

Browse files
jairoFernandezdunglas
authored andcommitted
Adjust when the properties is null (#225)
1 parent e8fb5e3 commit ad11910

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/filters.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,13 @@ final class RegexpFilter extends AbstractFilter
599599
// This function is only used to hook in documentation generators (supported by Swagger and Hydra)
600600
public function getDescription(string $resourceClass): array
601601
{
602+
if (!$this->properties) {
603+
return [];
604+
}
605+
602606
$description = [];
603607
foreach ($this->properties as $property => $strategy) {
604-
$description['regexp_'.$property] = [
608+
$description["regexp_$property"] = [
605609
'property' => $property,
606610
'type' => 'string',
607611
'required' => false,

0 commit comments

Comments
 (0)