1 | <?php |
||
18 | class ServiceFeedbackClient extends ServiceClient |
||
19 | { |
||
20 | /** |
||
21 | * APN Feedback service give you information about failed push notifications |
||
22 | * |
||
23 | * @param array|null $notification |
||
24 | * @throws ClientException |
||
25 | * @return bool |
||
26 | */ |
||
27 | /** |
||
28 | * @return \ArrayIterator |
||
29 | */ |
||
30 | public function sendRequest() |
||
43 | } |
||
44 |
This check looks for type mismatches where the missing type is
false
. This is usually indicative of an error condtion.Consider the follow example
This function either returns a new
DateTime
object or false, if there was an error. This is a typical pattern in PHP programming to show that an error has occurred without raising an exception. The calling code should check for this returnedfalse
before passing on the value to another function or method that may not be able to handle afalse
.