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

Update library/Zend/Db/Adapter/Driver/Mysqli/Connection.php #2693

Merged
merged 1 commit into from Oct 9, 2012
Merged

Update library/Zend/Db/Adapter/Driver/Mysqli/Connection.php #2693

merged 1 commit into from Oct 9, 2012

Conversation

ghost
Copy link

@ghost ghost commented Oct 6, 2012

Using setResource method cause an error Catchable fatal error: Argument 1 passed to Zend\Db\Adapter\Driver\Mysqli\Connection::setResource() must be an instance of Zend\Db\Adapter\Driver\Mysqli\Mysqli, instance of mysqli given

Because the class is under a namespace, the type-hinting expects it to be under Zend\Db\Adapter\Driver\Mysqli\

Using setResource method cause an exception Catchable fatal error: Argument 1 passed to Zend\Db\Adapter\Driver\Mysqli\Connection::setResource() must be an instance of Zend\Db\Adapter\Driver\Mysqli\Mysqli, instance of mysqli given

Because the class is under a namespace, the type-hinting expects it to be under end\Db\Adapter\Driver\Mysqli\
@ghost ghost assigned ralphschindler Oct 8, 2012
@ralphschindler ralphschindler merged commit 41a7a0c into zendframework:master Oct 9, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant