From 18f6a1c3f0a338cfff36a3bb4f3d5ee360b28aea Mon Sep 17 00:00:00 2001 From: bugsfunny Date: Wed, 8 May 2019 11:05:23 +0200 Subject: [PATCH] Make function protected Can we pass function to protected for inheritance capacity --- src/Bridge/Doctrine/Common/Filter/RangeFilterTrait.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bridge/Doctrine/Common/Filter/RangeFilterTrait.php b/src/Bridge/Doctrine/Common/Filter/RangeFilterTrait.php index 97148b8cacc..d322f7ff8f9 100644 --- a/src/Bridge/Doctrine/Common/Filter/RangeFilterTrait.php +++ b/src/Bridge/Doctrine/Common/Filter/RangeFilterTrait.php @@ -76,7 +76,7 @@ protected function getFilterDescription(string $fieldName, string $operator): ar ]; } - private function normalizeValues(array $values, string $property): ?array + protected function normalizeValues(array $values, string $property): ?array { $operators = [self::PARAMETER_BETWEEN, self::PARAMETER_GREATER_THAN, self::PARAMETER_GREATER_THAN_OR_EQUAL, self::PARAMETER_LESS_THAN, self::PARAMETER_LESS_THAN_OR_EQUAL]; @@ -100,7 +100,7 @@ private function normalizeValues(array $values, string $property): ?array /** * Normalize the values array for between operator. */ - private function normalizeBetweenValues(array $values): ?array + protected function normalizeBetweenValues(array $values): ?array { if (2 !== \count($values)) { $this->getLogger()->notice('Invalid filter ignored', [ @@ -126,7 +126,7 @@ private function normalizeBetweenValues(array $values): ?array * * @return int|float|null */ - private function normalizeValue(string $value, string $operator) + protected function normalizeValue(string $value, string $operator) { if (!is_numeric($value)) { $this->getLogger()->notice('Invalid filter ignored', [