File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments