Skip to content

[Bug]: Misleading condition and error message #7535

@cgmadu

Description

@cgmadu

Expected behavior

Here I hope the condition should be count($check) > 0

The condition checks if count($check) <= 0, i.e., if the result is empty or has no items.

But the exception message says: "Bucket wasn't empty." — that’s the opposite.

Actual behavior

The condition checks if count($check) <= 0, i.e., if the result is empty or has no items.

But the exception message says: "Bucket wasn't empty." — that’s the opposite.

Steps to reproduce

1.
2.
3.

Logs / stacktrace (if applicable)

Which SDK were you using?

PHP

Which OS were you using?

Linux

SDK version

No response

OS version

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions