Skip to content

Commit

Permalink
Merge branch 'next-39986/auto-imported-from-github' into 'trunk'
Browse files Browse the repository at this point in the history
NEXT-39986 - Fix: failing assert in bin/console state-machine:dump

See merge request shopware/6/product/platform!15503
  • Loading branch information
cyl3x committed Dec 10, 2024
2 parents e573cbb + dbb4a48 commit cf6ddd9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Fix assert `bin/console state-machine:dump`
issue: NEXT-39986
author: Alexander Menk
author_email: [email protected]
author_github: amenk
---
# Core
* Changed assert in `bin/console state-machine:dump`.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ private function addOptions(array $options): string
$code = [];
foreach ($options as $k => $v) {
\assert(\is_string($k));
\assert(\is_string($v));
$code[] = \sprintf('%s="%s"', $k, $v);
if ($v !== null) {
\assert(\is_scalar($v) || $v instanceof \Stringable);
$code[] = \sprintf('%s="%s"', $k, $v);
}
}

return implode(' ', $code);
Expand Down

0 comments on commit cf6ddd9

Please sign in to comment.