Skip to content

Commit

Permalink
Merge 3ecd048 into 94af5b5
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Jul 6, 2020
2 parents 94af5b5 + 3ecd048 commit 3e6dfdc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Filter/AbstractDateFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function getRenderSettings()
* @param string $field
* @param \DateTime $datetime
*/
protected function applyType(ProxyQueryInterface $queryBuilder, $operation, $field, \DateTime $datetime = null)
protected function applyType(ProxyQueryInterface $queryBuilder, $operation, $field, ?\DateTime $datetime = null)
{
$queryBuilder->field($field)->$operation($datetime);
$this->active = true;
Expand Down
2 changes: 1 addition & 1 deletion src/Util/ObjectAclManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ObjectAclManipulator extends BaseObjectAclManipulator
/**
* {@inheritdoc}
*/
public function batchConfigureAcls(OutputInterface $output, AdminInterface $admin, UserSecurityIdentity $securityIdentity = null)
public function batchConfigureAcls(OutputInterface $output, AdminInterface $admin, ?UserSecurityIdentity $securityIdentity = null)
{
$securityHandler = $admin->getSecurityHandler();
if (!$securityHandler instanceof AclSecurityHandlerInterface) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Filter/FilterWithQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ abstract class FilterWithQueryBuilderTest extends TestCase
private $queryBuilder;
private $expr;

public function setUp(): void
protected function setUp(): void
{
$this->queryBuilder = $this->createMock(Builder::class);
$this->queryBuilder
Expand Down
2 changes: 1 addition & 1 deletion tests/Guesser/FilterTypeGuesserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function testGuessTypeWithAssociation(): void
/**
* @dataProvider noAssociationData
*/
public function testGuessTypeNoAssociation(string $type, string $resultType, int $confidence, string $fieldType = null): void
public function testGuessTypeNoAssociation(string $type, string $resultType, int $confidence, ?string $fieldType = null): void
{
$classMetadata = $this->prophesize(ClassMetadata::class);

Expand Down

0 comments on commit 3e6dfdc

Please sign in to comment.