We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8fb5e3 commit ad11910Copy full SHA for ad11910
core/filters.md
@@ -599,9 +599,13 @@ final class RegexpFilter extends AbstractFilter
599
// This function is only used to hook in documentation generators (supported by Swagger and Hydra)
600
public function getDescription(string $resourceClass): array
601
{
602
+ if (!$this->properties) {
603
+ return [];
604
+ }
605
+
606
$description = [];
607
foreach ($this->properties as $property => $strategy) {
- $description['regexp_'.$property] = [
608
+ $description["regexp_$property"] = [
609
'property' => $property,
610
'type' => 'string',
611
'required' => false,
0 commit comments