Skip to content

Commit d48e18c

Browse files
authored
refactor: add return type-hints to private methods (#1097)
1 parent 31dca55 commit d48e18c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Grid/Column/Column.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public function isFiltered()
370370
/**
371371
* @return bool
372372
*/
373-
private function hasFromOperandFilter()
373+
private function hasFromOperandFilter(): bool
374374
{
375375
if (!isset($this->data['from'])) {
376376
return false;
@@ -386,7 +386,7 @@ private function hasFromOperandFilter()
386386
/**
387387
* @return bool
388388
*/
389-
private function hasToOperandFilter()
389+
private function hasToOperandFilter(): bool
390390
{
391391
if (!isset($this->data['to'])) {
392392
return false;
@@ -402,7 +402,7 @@ private function hasToOperandFilter()
402402
/**
403403
* @return bool
404404
*/
405-
private function hasOperatorFilter()
405+
private function hasOperatorFilter(): bool
406406
{
407407
if (!isset($this->data['operator'])) {
408408
return false;

Grid/GridFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private function resolveType($type)
121121
*
122122
* @return array
123123
*/
124-
private function resolveOptions(GridTypeInterface $type, Source $source = null, array $options = [])
124+
private function resolveOptions(GridTypeInterface $type, Source $source = null, array $options = []): array
125125
{
126126
$resolver = new OptionsResolver();
127127

0 commit comments

Comments
 (0)