closed #129 fixed parameter hinting

This commit is contained in:
Exodus4D
2016-04-17 14:25:54 +02:00
parent da00313293
commit b28cd1af78
2 changed files with 4 additions and 4 deletions

View File

@@ -672,7 +672,7 @@ class Map extends Controller\AccessController {
$cacheKey = 'user_data_' . $tempId . '_' . $requestSystemData->systemId;
if( !$f3->exists($cacheKey) ){
foreach($mapIds as $mapId){
$map = $activeCharacter->getMap($mapId);
$map = $activeCharacter->getMap( (int)$mapId);
if( !is_null($map) ){
$return->mapUserData[] = $map->getUserData();

View File

@@ -415,15 +415,15 @@ class CharacterModel extends BasicModel {
/**
* get mapModel by id and check if user has access
* @param int $mapId
* @param $mapId
* @return MapModel|null
*/
public function getMap(int $mapId){
public function getMap($mapId){
/**
* @var $map MapModel
*/
$map = self::getNew('MapModel');
$map->getById( $mapId );
$map->getById( (int)$mapId );
$returnMap = null;
if($map->hasAccess($this)){