Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Simplify status code #103

Merged

Conversation

snapshotpl
Copy link
Contributor

I decided to simplify set status code. Why? Constructor's phpdocs says that it's expected $status variable as int, not null, only int. I know that make BC, however it should be done in my opinion

$this->assertEquals($expected, $response->getHeaders());
}

/**
* @expectedException \InvalidArgumentException
Copy link
Member

Choose a reason for hiding this comment

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

Please follow the same convention as the rest of tests. Use setExpectedException and fill the second argument.

@weierophinney
Copy link
Member

What purpose does a null status code serve? I honestly do not understand the rationale behind this change.

@Maks3w
Copy link
Member

Maks3w commented Nov 26, 2015

What he say is the argument should be always integer however the actual code implemented allow null

@weierophinney weierophinney added this to the 1.2.1 milestone Dec 15, 2015
@weierophinney weierophinney self-assigned this Dec 15, 2015
@weierophinney weierophinney merged commit d476dd7 into zendframework:master Dec 15, 2015
weierophinney added a commit that referenced this pull request Dec 15, 2015
weierophinney added a commit that referenced this pull request Dec 15, 2015
weierophinney added a commit that referenced this pull request Dec 15, 2015
weierophinney added a commit that referenced this pull request Dec 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants