for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Runalyze\Devices\Mapping;
use Runalyze\Devices\Device\DeviceProfile;
class TomTomFitSdkMapping
{
/** @var int[]|string[] */
protected $Mapping = [];
protected function getMapping()
return [
2015 => DeviceProfile::TOM_TOM_RUNNER_3_CARDIO,
];
}
public function __construct()
$this->Mapping = $this->getMapping();
$this->getMapping()
array<integer,?>
array<integer,integer|string>
$Mapping
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
/**
* @param int|string $value
* @return int|string
public function toInternal($value)
if (isset($this->Mapping[$value])) {
return $this->Mapping[$value];
return;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..