mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +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 $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return mixed[]
|
||||||
|
*/
|
||||||
public function __debugInfo(){
|
public function __debugInfo(){
|
||||||
$data = [];
|
$data = [];
|
||||||
foreach((array) $this as $k => $v){
|
foreach((array) $this as $k => $v){
|
||||||
@ -175,6 +178,8 @@ abstract class DataPacket extends NetworkBinaryStream{
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name
|
* @param string $name
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function __get($name){
|
public function __get($name){
|
||||||
throw new \Error("Undefined property: " . get_class($this) . "::\$" . $name);
|
throw new \Error("Undefined property: " . get_class($this) . "::\$" . $name);
|
||||||
@ -183,6 +188,8 @@ abstract class DataPacket extends NetworkBinaryStream{
|
|||||||
/**
|
/**
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __set($name, $value){
|
public function __set($name, $value){
|
||||||
throw new \Error("Undefined property: " . get_class($this) . "::\$" . $name);
|
throw new \Error("Undefined property: " . get_class($this) . "::\$" . $name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user