mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
DataPacket: add magic method return types to keep phpstan happy
this really shouldn't be necessary, but it is what it is.
This commit is contained in:
parent
e6ba3ce8a6
commit
fffeeddca6
@ -158,6 +158,9 @@ abstract class DataPacket extends NetworkBinaryStream{
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed[]
|
||||
*/
|
||||
public function __debugInfo(){
|
||||
$data = [];
|
||||
foreach((array) $this as $k => $v){
|
||||
@ -175,6 +178,8 @@ abstract class DataPacket extends NetworkBinaryStream{
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function __get($name){
|
||||
throw new \Error("Undefined property: " . get_class($this) . "::\$" . $name);
|
||||
@ -183,6 +188,8 @@ abstract class DataPacket extends NetworkBinaryStream{
|
||||
/**
|
||||
* @param string $name
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __set($name, $value){
|
||||
throw new \Error("Undefined property: " . get_class($this) . "::\$" . $name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user