1 | <?php |
||
8 | class PerformanceEventRepository extends AbstractRepository |
||
9 | 2 | { |
|
10 | 2 | /** |
|
11 | 2 | * @param \DateTime $fromDate |
|
12 | 2 | * @param \DateTime $toDate |
|
13 | 2 | * @param string $limit |
|
14 | * @param null $performanceSlug |
||
15 | * @return mixed |
||
16 | 2 | */ |
|
17 | public function findByDateRangeAndSlug( |
||
42 | |||
43 | /** |
||
44 | * Get PerformanceEvent by ID |
||
45 | * |
||
46 | * @param int $id |
||
47 | * |
||
48 | * @return PerformanceEvent |
||
49 | * @throws NotFoundException |
||
50 | */ |
||
51 | public function getById(int $id): PerformanceEvent |
||
61 | } |
||
62 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: