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

Fix annotations on zend db #6798

Closed

Conversation

@samsonasik
Copy link
Contributor

please do rebase againts master and fix the conflicts.

@dennisdegreef
Copy link
Contributor Author

Done! :)

@Ocramius
Copy link
Member

Ocramius commented Dec 2, 2014

@dennisdegreef commit dennisdegreef/zf2@433a40e should be removed. Rebase instead, merging master into dev branches causes merge/bisect hell.

@dennisdegreef
Copy link
Contributor Author

Sorry, I may have messed this up... I'll try and repatch it on a fresh branch

@Ocramius
Copy link
Member

Ocramius commented Dec 2, 2014

@dennisdegreef looking much better now

@Ocramius Ocramius added this to the 2.3.4 milestone Dec 2, 2014
@Ocramius Ocramius self-assigned this Dec 2, 2014
* @throws Exception\InvalidArgumentException
* @return Driver\StatementInterface|ResultSet\ResultSet
*/
public function query($sql, $parametersOrQueryMode, ResultSet\ResultSetInterface $resultPrototype = null);
Copy link
Member

Choose a reason for hiding this comment

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

This is a major BC break and I will have to remove it on merge.

Ocramius added a commit that referenced this pull request Dec 5, 2014
Ocramius added a commit that referenced this pull request Dec 5, 2014
@Ocramius Ocramius closed this in f373802 Dec 5, 2014
Ocramius added a commit that referenced this pull request Dec 5, 2014
@Ocramius
Copy link
Member

Ocramius commented Dec 5, 2014

@dennisdegreef manually merged, thanks!

master: f373802
develop: cbbf68d

@dennisdegreef
Copy link
Contributor Author

Hi @Ocramius , If the query() method in the interface is a BC break (I can't see why currently, but that may be the time of day), shouldn't the getMock() methods in the tests also remove the 'query' method from the second parameter?

$mockMasterAdapter = $this->getMock(
            'Zend\Db\Adapter\AdapterInterface',
-            array('getDriver', 'getPlatform', 'query')
+           array('getDriver', 'getPlatform')
        );

@Ocramius
Copy link
Member

Ocramius commented Dec 5, 2014

It's a bc break because implementing classes not implementing query() will then cause a fatal (non-framework classes).

I didn't see any other failures otherwise: getMock could indeed need some fixing there, if you want to open a different PR :-)

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