mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +01:00
Updated binary data to return null
This commit is contained in:
parent
7007f00ac8
commit
9c7306ad25
@ -464,11 +464,14 @@ class Player
|
||||
* Returns binary data that was read out the pairtwo file but was not needed immediately
|
||||
*
|
||||
* @param string $Key
|
||||
* @return bool|DateTime|int|string
|
||||
* @return bool|DateTime|int|string|null
|
||||
*/
|
||||
public function getBinaryData(string $Key)
|
||||
{
|
||||
return $this->BinaryData[$Key];
|
||||
if (isset($this->BinaryData[$Key])) {
|
||||
return $this->BinaryData[$Key];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -103,11 +103,14 @@ class Pairtwo6 implements ReaderInterface
|
||||
* Returns binary data that was read out the pairtwo file but was not needed immediately
|
||||
*
|
||||
* @param string $Key
|
||||
* @return bool|DateTime|int|string
|
||||
* @return bool|DateTime|int|string|null
|
||||
*/
|
||||
public function getBinaryData(string $Key)
|
||||
{
|
||||
return $this->BinaryData[$Key];
|
||||
if (isset($this->BinaryData[$Key])) {
|
||||
return $this->BinaryData[$Key];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user