Skip to content

Add a guard before accessing response code - #269

Merged
amyevans merged 7 commits into
mainfrom
monil-fixBugBot
Aug 10, 2026
Merged

Add a guard before accessing response code#269
amyevans merged 7 commits into
mainfrom
monil-fixBugBot

Conversation

@MonilBhavsar

@MonilBhavsar MonilBhavsar commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Explanation of Change

Same as title

Related Issues

$ https://github.com/Expensify/Expensify/issues/669799

Deployment

  • I followed the steps in the README to ensure this PR is deployed properly

Comment thread src/Cache.php
$response = $this->call("ReadCache", ["name" => $fullName]);
if ($response['code'] === 404) {
$response = $this->call('ReadCache', ['name' => $fullName]);
if (!is_array($response) || $response['code'] === 404) {

@MonilBhavsar MonilBhavsar Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only real change. Others are style and phan fixes

@MonilBhavsar
MonilBhavsar requested a review from a team August 10, 2026 13:28
@melvin-bot
melvin-bot Bot requested review from amyevans and removed request for a team August 10, 2026 13:28
@amyevans
amyevans merged commit a5161c2 into main Aug 10, 2026
6 of 7 checks passed
@amyevans
amyevans deleted the monil-fixBugBot branch August 10, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants