Skip to content

Commit

Permalink
Updates to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cpkdevries committed Jun 22, 2023
1 parent 9dfcd3a commit 38666a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Grid/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@ public function setMaxResults($maxResults = null)
return $this;
}

public function getMaxResults(): int
public function getMaxResults(): ?int
{
return $this->maxResults;
}
Expand Down
3 changes: 1 addition & 2 deletions tests/Grid/ColumnsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public function testAddColumnsOrder()
->addColumn($column1)
->addColumn($column2, 1)
->addColumn($column3, 2)
->addColumn($column4, -1)
->addColumn($column5, 'foo');
->addColumn($column4, -1);

$this->assertSame([$column2, $column3, $column4, $column1, $column5], iterator_to_array($this->columns->getIterator()));
}
Expand Down

0 comments on commit 38666a7

Please sign in to comment.