Fix type hint

This commit is contained in:
Phan An 2018-09-03 20:14:55 +07:00
parent 24cff9c2a8
commit efcb6757d2

View file

@ -19,7 +19,7 @@ class PHPStreamer extends Streamer implements DirectStreamerInterface
{
try {
$rangeSet = RangeSet::createFromHeader(get_request_header('Range'));
/** @var resource $resource */
/** @var Resource $resource */
$resource = new FileResource($this->song->path, 'application/octet-stream');
(new ResourceServlet($resource))->sendResource($rangeSet);
} catch (InvalidRangeHeaderException $e) {