Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Should throw error if indexname is not set #402

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amtee
Copy link

@amtee amtee commented Feb 13, 2023

It is common practice to use an ENV variable to set the index name. If it's not present,It is common practice to use an ENV variable to set the index name. If it's not present, $name is not empty string, but false.

I know this is likely not a bug in the Adaptor itself, maybe let's see this as an enhancement 😄 $name is not empty string, but false.

It is common practice to use an ENV variable to set the index name. If it's not present, $name is not empty string, but false.
Copy link
Contributor

@daniellienert daniellienert left a comment

Choose a reason for hiding this comment

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

Hey @amtee,
According to https://www.php.net/manual/de/function.trim.php, trim never returns false - so your check will never be true. Do I miss somehing?

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