mirror of
https://github.com/furyfire/trueskill.git
synced 2025-07-13 07:01:16 +02:00
More type work.
This commit is contained in:
@@ -21,7 +21,7 @@ abstract class FactorGraphLayer
|
||||
|
||||
// HACK
|
||||
|
||||
public function getParentFactorGraph()
|
||||
public function getParentFactorGraph(): FactorGraph
|
||||
{
|
||||
return $this->parentFactorGraph;
|
||||
}
|
||||
|
@@ -4,8 +4,9 @@ namespace DNW\Skills\FactorGraphs;
|
||||
|
||||
class Message implements \Stringable
|
||||
{
|
||||
public function __construct(private $value = null, private $name = null)
|
||||
public function __construct(private ?object $value = null, private ?string $name = null)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getValue()
|
||||
|
Reference in New Issue
Block a user