Skip to content

The etag from data can never be a string #43

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

Merged
merged 1 commit into from
Jul 31, 2017
Merged

The etag from data can never be a string #43

merged 1 commit into from
Jul 31, 2017

Conversation

GrahamCampbell
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? maybe?
Deprecations? no
License MIT

I don't think this key can ever produce anything other than a string, since it is set by $response->getHeader('ETag') which is always of type string[].

Is this there for historical reasons perhaps? If so, instead of this PR, a comment should be added, similar to to the isset removal comment.

@dbu
Copy link
Contributor

dbu commented Jul 31, 2017

@Nyholm added this with the introduction of e-tag support in 4bf191d - not sure if there is something that could mess this up?

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

You are correct. This if statement will never evaluate to true

@Nyholm Nyholm merged commit eef8c86 into php-http:master Jul 31, 2017
@GrahamCampbell GrahamCampbell deleted the patch-1 branch July 31, 2017 17:38
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.

3 participants