if ($this->upgrade &&
preg_match('/\n+#\s+(\w+)/',
$this->upgrade,
$matches)) { $this->
buildViolationSectionSeparator($context, ChangelogSection::upgrade,
$matches[1
]);
} if ($this->nextMajorVersionChanges &&
preg_match('/\n+#\s+(\w+)/',
$this->nextMajorVersionChanges,
$matches)) { $this->
buildViolationSectionSeparator($context, ChangelogSection::major,
$matches[1
]);
} if ($this->flag && !Feature::
has($this->flag
)) { $context->
buildViolation(sprintf('Unknown flag %s is assigned ',
$this->flag
)) ->
atPath('flag'
) ->
addViolation();
} } public function getTitle(): string
{ return $this->title;
} public function setTitle(string
$title): ChangelogDefinition
{