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

added missing register services at Zend\Paginator\AdapterPluginManager #6577

Closed

Conversation

samsonasik
Copy link
Contributor

No description provided.

{
return new DbTableGateway(
$this->creationOptions[0],
isset($this->creationOptions[1]) ? : null,
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not inject the value of $this->createOptions[1]. If you leave out the middle part of the ternary operator, the value of the first expression is returned which is the result of isset($this->createOptions[1]) (true of false).

Copy link
Member

Choose a reason for hiding this comment

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

Good catch. Indeed, @samsonasik: the elvis operator does not work well with isset()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, fixed now.

@Ocramius
Copy link
Member

Also: requires tests for the newly introduced factory

@samsonasik
Copy link
Contributor Author

@Martin-P @Ocramius done ;) and test cases added.

@samsonasik
Copy link
Contributor Author

@Ocramius I think "awaiting author updates" label can be uncheck now :D

@Ocramius
Copy link
Member

@samsonasik thanks: poke me if I don't review within the end of next week :)

@samsonasik
Copy link
Contributor Author

ping @Ocramius any review for it ? Thanks

@Ocramius Ocramius added this to the 2.3.4 milestone Nov 22, 2014
Ocramius added a commit that referenced this pull request Nov 22, 2014
@Ocramius Ocramius closed this in e13463b Nov 22, 2014
Ocramius added a commit that referenced this pull request Nov 22, 2014
…nager-registered-services' into develop

Close #6577
Forward port #6577
@Ocramius
Copy link
Member

@samsonasik merged, thanks!

master: e13463b
develop: 7e95ddf

gianarb pushed a commit to zendframework/zend-paginator that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-paginator that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-paginator that referenced this pull request May 15, 2015
…paginator-adapter-plugin-manager-registered-services' into develop

Close zendframework/zendframework#6577
Forward port zendframework/zendframework#6577
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants