Skip to content

Commit 81c04d6

Browse files
committed
Prevent PHP notice with non-string property names
1 parent 8f2682d commit 81c04d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Filter/Security.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private function allowStripTags(string $value, FilterScope $scope): bool
4343
return true;
4444
}
4545

46-
$field = $this->getFieldByPropertyName($repository, $property);
46+
$field = $this->getFieldByPropertyName($repository, (string)$property);
4747
if (empty($field)) {
4848
return true;
4949
}

0 commit comments

Comments
 (0)