Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-moser committed Sep 23, 2024
1 parent 9a23431 commit b6e0e67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private function extractNamingScheme(CustomerInterface $customer, $namingScheme)
foreach ($namingScheme as $i => $namingSchemeItem) {
preg_match_all('/{([a-zA-Z0-9]*)}/', $namingSchemeItem, $matchedPlaceholder);

if (count($matchedPlaceholder[0] ?? []) > 0) {
if (count($matchedPlaceholder[0]) > 0) {
foreach ($matchedPlaceholder[0] as $j => $placeholder) {
$field = $matchedPlaceholder[1][$j];

Expand Down

0 comments on commit b6e0e67

Please sign in to comment.