Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Nov 21, 2024
1 parent 52e2028 commit 48acca6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/factories/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public function inferences(array $definition = [])
'handle' => StringHelper::toHandle($name),
]);
if (InstalledVersions::satisfies(new VersionParser, 'craftcms/cms', '>=5.5.0')) {
// @phpstan-ignore-next-line
$entryType->getFieldLayout()->prependElements([new EntryTitleField]);
}
service(SectionsServiceInterface::class)->saveEntryType($entryType);
Expand Down

0 comments on commit 48acca6

Please sign in to comment.