mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-24 23:37:41 +01:00
Merge branch 'develop' into task/reader/swar
This commit is contained in:
commit
c61876c87e
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
## vx.y.z (Release: aa-bbb-cccc)
|
## vx.y.z (Release: aa-bbb-cccc)
|
||||||
* NEW READER: `swar-4` for reading out files created with Swar version 4.
|
* NEW READER: `swar-4` for reading out files created with Swar version 4.
|
||||||
|
* ENHANCEMENT: `Class::getBinaryData` methods return null if field is non-existent
|
||||||
* BUGFIX: `Player:GetId` returns elo instead of id
|
* BUGFIX: `Player:GetId` returns elo instead of id
|
||||||
|
|
||||||
## v1.1.2 (Release: 21-jun-2019)
|
## v1.1.2 (Release: 21-jun-2019)
|
||||||
|
@ -464,11 +464,14 @@ class Player
|
|||||||
* Returns binary data that was read out the pairtwo file but was not needed immediately
|
* Returns binary data that was read out the pairtwo file but was not needed immediately
|
||||||
*
|
*
|
||||||
* @param string $Key
|
* @param string $Key
|
||||||
* @return bool|DateTime|int|string
|
* @return bool|DateTime|int|string|null
|
||||||
*/
|
*/
|
||||||
public function getBinaryData(string $Key)
|
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
|
* Returns binary data that was read out the pairtwo file but was not needed immediately
|
||||||
*
|
*
|
||||||
* @param string $Key
|
* @param string $Key
|
||||||
* @return bool|DateTime|int|string
|
* @return bool|DateTime|int|string|null
|
||||||
*/
|
*/
|
||||||
public function getBinaryData(string $Key)
|
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