Skip to content

Commit cf6caef

Browse files
committed
Rector and PHPStan updated rules
1 parent f68cc34 commit cf6caef

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/Data/Tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getTagsArray(): array
3030
$tagsArray = [];
3131

3232
foreach ($this->data as $tag) {
33-
if (is_array($tag) && array_key_exists("name", $tag)) {
33+
if (is_array($tag) && array_key_exists("name", $tag) && is_string($tag["name"])) {
3434
$tagsArray[] = $tag["name"];
3535
}
3636

src/Endpoints/StoryBulkApi.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ public function createStories(array $stories): \Generator
129129
"story_name" => $storyData->name(),
130130
],
131131
);
132-
throw new StoryblokApiException(
133-
"Rate limit exceeded maximum retries",
134-
self::RATE_LIMIT_STATUS_CODE,
135-
);
132+
throw new StoryblokApiException("Rate limit exceeded maximum retries", self::RATE_LIMIT_STATUS_CODE, $e);
136133
}
137134

138135
$this->logger->warning(

0 commit comments

Comments
 (0)