Package update and implemented new fixes for Rector findings

This commit is contained in:
2025-01-13 08:57:13 +00:00
parent 24665d6e57
commit 2212d45f61
4 changed files with 288 additions and 235 deletions

517
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@ class Variable
{ {
private mixed $value; private mixed $value;
public function __construct(private GaussianDistribution $prior) public function __construct(private readonly GaussianDistribution $prior)
{ {
$this->resetToPrior(); $this->resetToPrior();
} }

View File

@ -6,7 +6,7 @@ namespace DNW\Skills\FactorGraphs;
class VariableFactory class VariableFactory
{ {
public function __construct(private \Closure $varPriorInitializer) public function __construct(private readonly \Closure $varPriorInitializer)
{ {
} }

View File

@ -28,7 +28,7 @@ class TrueSkillFactorGraph extends FactorGraph
/** /**
* @var FactorGraphLayer[] $layers * @var FactorGraphLayer[] $layers
*/ */
private array $layers; private readonly array $layers;
private readonly PlayerPriorValuesToSkillsLayer $priorLayer; private readonly PlayerPriorValuesToSkillsLayer $priorLayer;