DiscordPHP-Voice Documentation

Markers

Table of Contents

src/Discord/Voice/ByteBuffer/Buffer.php 12
src/Discord/Voice/Processes/OpusFfi.php 1
src/Discord/WebSockets/VoicePayload.php 1

Buffer.php

Type Line Description
TODO 195 Next major release: narrow the native return type from `self` to `static`; it already returns `$this`. Not before, because `Buffer` is not final and a subclass overriding this with `: self` would fail to load.
TODO 217 Next major release: narrow the native return type from `self` to `static`; it already returns `$this`. Not before, because `Buffer` is not final and a subclass overriding this with `: self` would fail to load.
TODO 240 Next major release: narrow the native return type from `self` to `static`; it already returns `$this`. Not before, because `Buffer` is not final and a subclass overriding this with `: self` would fail to load.
TODO 263 Next major release: narrow the native return type from `self` to `static`; it already returns `$this`. Not before, because `Buffer` is not final and a subclass overriding this with `: self` would fail to load.
TODO 286 Next major release: narrow the native return type from `self` to `static`; it already returns `$this`. Not before, because `Buffer` is not final and a subclass overriding this with `: self` would fail to load.
TODO 309 Next major release: narrow the native return type from `self` to `static`; it already returns `$this`. Not before, because `Buffer` is not final and a subclass overriding this with `: self` would fail to load.
TODO 333 Next major release: declare the native return type `string`. Not before, because `Buffer` is not final and a subclass overriding this without a return type would fail to load.
TODO 344 Next major release: declare the native return type `int`. Not before, because `Buffer` is not final and a subclass overriding this without a return type would fail to load.
TODO 357 Next major release: declare the native return type `int`. Not before, because `Buffer` is not final and a subclass overriding this without a return type would fail to load.
TODO 370 Next major release: declare the native return type `int`. Not before, because `Buffer` is not final and a subclass overriding this without a return type would fail to load.
TODO 384 Next major release: declare the native return type `int|float`. On 32-bit PHP, a value above `PHP_INT_MAX` comes back as a float, so `int` alone would not hold on every path. Not before, because `Buffer` is not final and a subclass overriding this without a return type would fail to load.
TODO 398 Next major release: declare the native return type `int|float`. On 32-bit PHP, a value above `PHP_INT_MAX` comes back as a float, so `int` alone would not hold on every path. Not before, because `Buffer` is not final and a subclass overriding this without a return type would fail to load.

OpusFfi.php

Type Line Description
TODO 32

VoicePayload.php

Type Line Description
TODO 31 Next major release: override `fromArray()`, inherited from `Payload`, to return a `VoicePayload`; it currently builds a plain `Payload`. Not before, because this class is not final and a subclass already overriding `fromArray()` with `: Payload` would fail to load.

Search results