File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ if ($content === false) {
35
35
throw new FileLoadingException('Could not load file foobar.json');
36
36
}
37
37
$foobar = json_decode($content);
38
- if ($foobar === null ) {
39
- throw new FileLoadingException('foobar.json does not contain valid JSON: '.json_last_error ());
38
+ if (json_last_error() !== JSON_ERROR_NONE ) {
39
+ throw new FileLoadingException('foobar.json does not contain valid JSON: '.json_last_error_msg ());
40
40
}
41
41
```
42
42
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function msg_queue_exists(int $key): void
31
31
* of the queue is returned. If desiredmsgtype is
32
32
* greater than 0, then the first message of that type is returned.
33
33
* If desiredmsgtype is less than 0, the first
34
- * message on the queue with the lowest type less than or equal to the
34
+ * message on the queue with a type less than or equal to the
35
35
* absolute value of desiredmsgtype will be read.
36
36
* If no messages match the criteria, your script will wait until a suitable
37
37
* message arrives on the queue. You can prevent the script from blocking
You can’t perform that action at this time.
0 commit comments