Skip to content

Commit

Permalink
refactor: add return type-hints to private methods (#1097)
Browse files Browse the repository at this point in the history
  • Loading branch information
deguif authored Dec 14, 2023
1 parent 31dca55 commit d48e18c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Grid/Column/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public function isFiltered()
/**
* @return bool
*/
private function hasFromOperandFilter()
private function hasFromOperandFilter(): bool
{
if (!isset($this->data['from'])) {
return false;
Expand All @@ -386,7 +386,7 @@ private function hasFromOperandFilter()
/**
* @return bool
*/
private function hasToOperandFilter()
private function hasToOperandFilter(): bool
{
if (!isset($this->data['to'])) {
return false;
Expand All @@ -402,7 +402,7 @@ private function hasToOperandFilter()
/**
* @return bool
*/
private function hasOperatorFilter()
private function hasOperatorFilter(): bool
{
if (!isset($this->data['operator'])) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion Grid/GridFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private function resolveType($type)
*
* @return array
*/
private function resolveOptions(GridTypeInterface $type, Source $source = null, array $options = [])
private function resolveOptions(GridTypeInterface $type, Source $source = null, array $options = []): array
{
$resolver = new OptionsResolver();

Expand Down

0 comments on commit d48e18c

Please sign in to comment.