It seems like you are loosely comparing $this->getParentId() of type null|string against null; this is ambiguous if the string can be empty. Consider using a strict comparison !== instead.
Loading history...
32
}
33
34
public static function parse(string $key): RelationshipKey
35
{
36
$ids = explode(RelationshipKey::DELIMITER, $key);
37
return new RelationshipKey($ids[0] ?? null, $ids[1] ?? null);