More type work.

This commit is contained in:
2023-08-02 10:10:57 +00:00
parent a60187a3fd
commit 5c7471963c
14 changed files with 43 additions and 38 deletions

View File

@ -21,7 +21,7 @@ abstract class FactorGraphLayer
// HACK
public function getParentFactorGraph()
public function getParentFactorGraph(): FactorGraph
{
return $this->parentFactorGraph;
}

View File

@ -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()