More static types using rector.

This commit is contained in:
2024-02-21 13:23:39 +00:00
parent 660fbd1486
commit df5b48b2c4
9 changed files with 17 additions and 19 deletions

View File

@ -31,9 +31,9 @@ abstract class Factor implements \Stringable
}
/**
* @return mixed The log-normalization constant of that factor
* @return float The log-normalization constant of that factor
*/
public function getLogNormalization()
public function getLogNormalization(): float
{
return 0;
}

View File

@ -21,7 +21,7 @@ abstract class FactorGraphLayer
/**
* @var array<int,array<int,object>>
*/
private $inputVariablesGroups = [];
private array $inputVariablesGroups = [];
protected function __construct(private readonly TrueSkillFactorGraph $parentFactorGraph)
{