Skip to content

Commit 40a289b

Browse files
wouterjnicolas-grekas
authored andcommitted
Add PHP types to private methods and functions
1 parent 564d6c4 commit 40a289b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private function addTaggedServices(ContainerBuilder $container): array
124124
return $listenerRefs;
125125
}
126126

127-
private function getEventManagerDef(ContainerBuilder $container, string $name)
127+
private function getEventManagerDef(ContainerBuilder $container, string $name): Definition
128128
{
129129
if (!isset($this->eventManagers[$name])) {
130130
$this->eventManagers[$name] = $container->getDefinition(sprintf($this->managerTemplate, $name));

Validator/Constraints/UniqueEntityValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function validate(mixed $entity, Constraint $constraint)
193193
->addViolation();
194194
}
195195

196-
private function formatWithIdentifiers(ObjectManager $em, ClassMetadata $class, mixed $value)
196+
private function formatWithIdentifiers(ObjectManager $em, ClassMetadata $class, mixed $value): string
197197
{
198198
if (!\is_object($value) || $value instanceof \DateTimeInterface) {
199199
return $this->formatValue($value, self::PRETTY_DATE);

0 commit comments

Comments
 (0)