mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 02:02:29 +01:00 
			
		
		
		
	Package update and implemented new fixes for Rector findings
This commit is contained in:
		@@ -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