From e0330b6c641714754c01d8985f19f52fa7818aba Mon Sep 17 00:00:00 2001 From: vol4onok Date: Tue, 27 Feb 2024 16:27:18 +0200 Subject: [PATCH] FRW-7460: Fixed multitype in AbstractValueExtractorStrategy, Updated CI --- .github/workflows/trigger-remote-pr-in-release-app.yml | 2 +- .github/workflows/trigger-remote-pr-in-upgrader.yml | 2 +- .../ValueExtractor/AbstractValueExtractorStrategy.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/trigger-remote-pr-in-release-app.yml b/.github/workflows/trigger-remote-pr-in-release-app.yml index 2e171968..3f8800ec 100644 --- a/.github/workflows/trigger-remote-pr-in-release-app.yml +++ b/.github/workflows/trigger-remote-pr-in-release-app.yml @@ -6,7 +6,7 @@ env: TARGET_REPO: release-app SOURCE_PACKAGE_NAME: 'spryker-sdk/integrator' PR_LABELS: 'composer dependencies' - PR_ASSIGNEES: pavelmaksimov25,DmytroKlymanSpryker + PR_ASSIGNEES: vol4onok,asmarovydlo on: release: diff --git a/.github/workflows/trigger-remote-pr-in-upgrader.yml b/.github/workflows/trigger-remote-pr-in-upgrader.yml index fb7e3aa2..7d8d9750 100644 --- a/.github/workflows/trigger-remote-pr-in-upgrader.yml +++ b/.github/workflows/trigger-remote-pr-in-upgrader.yml @@ -6,7 +6,7 @@ env: TARGET_REPO: upgrader SOURCE_PACKAGE_NAME: 'spryker-sdk/integrator' PR_LABELS: 'composer dependencies' - PR_ASSIGNEES: pavelmaksimov25,DmytroKlymanSpryker + PR_ASSIGNEES: vol4onok,asmarovydlo on: release: diff --git a/src/Builder/Extractor/ValueExtractor/AbstractValueExtractorStrategy.php b/src/Builder/Extractor/ValueExtractor/AbstractValueExtractorStrategy.php index 4bee28fd..30543a06 100644 --- a/src/Builder/Extractor/ValueExtractor/AbstractValueExtractorStrategy.php +++ b/src/Builder/Extractor/ValueExtractor/AbstractValueExtractorStrategy.php @@ -88,14 +88,14 @@ protected function createArrayStringFromResult(array $array): string continue; } - if (!$this->isConstant($key)) { + if (is_string($key) && !$this->isConstant($key)) { $key = sprintf('\'%s\'', $key); } - if (!$this->isConstant($value)) { + if (is_string($key) && !$this->isConstant($value)) { $value = sprintf('\'%s\'', $value); } - $result[] = sprintf('%s => %s', $key, $value); + $result[] = $key . ' => ' . $value; } return sprintf('[%s]', implode(', ', $result));