mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-15 17:37:39 +00:00
Package update and implemented new fixes for Rector findings
This commit is contained in:
517
composer.lock
generated
517
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -10,7 +10,7 @@ class Variable
|
||||
{
|
||||
private mixed $value;
|
||||
|
||||
public function __construct(private GaussianDistribution $prior)
|
||||
public function __construct(private readonly GaussianDistribution $prior)
|
||||
{
|
||||
$this->resetToPrior();
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ namespace DNW\Skills\FactorGraphs;
|
||||
|
||||
class VariableFactory
|
||||
{
|
||||
public function __construct(private \Closure $varPriorInitializer)
|
||||
public function __construct(private readonly \Closure $varPriorInitializer)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ class TrueSkillFactorGraph extends FactorGraph
|
||||
/**
|
||||
* @var FactorGraphLayer[] $layers
|
||||
*/
|
||||
private array $layers;
|
||||
private readonly array $layers;
|
||||
|
||||
private readonly PlayerPriorValuesToSkillsLayer $priorLayer;
|
||||
|
||||
|
Reference in New Issue
Block a user