Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 30ee474

Browse files
committed
Swapped false with null as it makes more sense semantically
1 parent 2aed4c3 commit 30ee474

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Filter/UrlEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ public function getUrlSection($section)
8080
return $this->parsedUrl[$section];
8181
}
8282

83-
return false;
83+
return null;
8484
}
8585
}

src/Filter/UrlSectionFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function filter(EventInterface $event)
4747
}
4848

4949
$section = $event->getUrlSection($this->section);
50-
if ($section === false) {
50+
if ($section === null) {
5151
return $this->strictResponse;
5252
}
5353

tests/Filter/UrlEventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function provideGetUrlSection()
2828
[
2929
'scheme' => 'http',
3030
'host' => 'phergie.org',
31-
'port' => false,
31+
'port' => null,
3232
]
3333
];
3434

0 commit comments

Comments
 (0)