Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<exclude name="Spryker.Commenting.DocBlockApiAnnotation"/> <!-- Another Spryker internal function. -->
<exclude name="Spryker.Commenting.DocBlockReturnSelf.InvalidChainable"/> <!-- methods with "@return $this" must end with "return $this", but cannot return $this through another method -->
<exclude name="Spryker.Commenting.DocBlockParamAllowDefaultValue.Typehint"/> <!-- fails to recognize array shapes (like `array{int, string})`-->
<exclude name="Spryker.Commenting.DocBlockParamAllowDefaultValue.WrongNullable"/> <!-- Checks for null as '?' (?string) but not '|null' (string|null) in spryker/code-sniffer 0.17.30 -->
</rule>

<rule ref="Spryker.Internal.SprykerDisallowFunctions">
Expand Down
8 changes: 3 additions & 5 deletions src/Propel/Generator/Builder/DataModelBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,13 +600,11 @@ public function declareClassFromBuilder(AbstractOMBuilder $builder, $aliasPrefix
/**
* @param string ...$classNames
*
* @return void
* @return array<string>
*/
public function declareClasses(string ...$classNames): void
public function declareClasses(string ...$classNames): array
{
foreach ($classNames as $class) {
$this->declareClass($class);
}
return array_map([$this, 'declareClass'], $classNames);
}

/**
Expand Down
Loading