Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 5a0f28e

Browse files
author
Flo Faber
committed
Fixed #18. Return type of Queue::get
1 parent ec0a3e4 commit 5a0f28e

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## v1.1.1
4+
5+
### Fixes
6+
7+
* Fixed return type of `Queue::get`. Issue [#18](https://github.com/FloFaber/MphpD/issues/18).
8+
9+
310
## v1.1.0
411

512
### Fixes

src/Queue.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ public function get_id(int $songid)
195195
* @param $p int|array Optional. Song Position or Range.
196196
* If omitted returns an array of associative arrays containing information about all songs in the Queue.
197197
* If specified returns an associative array containing the given songs information only.
198-
* @return array|false `array` on success or `false` on failure.
198+
* @return array|false `array` on success or `false` on failure. An empty `array` is returned if the queue is empty.
199199
*/
200-
public function get($p = -1) : array
200+
public function get($p = -1)
201201
{
202202

203203
$m = MPD_CMD_READ_LIST;
@@ -351,4 +351,4 @@ public function clear_tag_id(int $songid, string $tag) : bool
351351
}
352352

353353

354-
}
354+
}

0 commit comments

Comments
 (0)