Skip to content

Commit b4da8d5

Browse files
committed
Signed-off-by: Joey Smith <jsmith@webinertia.net>
1 parent 3aca44f commit b4da8d5

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

composer.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
<directory>./test/integration</directory>
2626
</testsuite>
2727
</testsuites>
28+
<source restrictNotices="true">
29+
<include>
30+
<directory>./src</directory>
31+
</include>
32+
</source>
2833
<php>
2934
<env name="TESTS_LAMINAS_DB_ADAPTER_MYSQL" value="true"/>
3035
<env name="TESTS_LAMINAS_DB_ADAPTER_MYSQL_HOSTNAME" value="localhost"/>

src/Driver/Mysqli/Statement.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Laminas\Db\Adapter\Mysql\Driver\Mysqli;
66

7+
use Laminas\Db\Adapter\Driver\ResultInterface;
78
use Laminas\Db\Adapter\Driver\StatementInterface;
89
use Laminas\Db\Adapter\Exception;
910
use Laminas\Db\Adapter\ParameterContainer;
@@ -160,12 +161,8 @@ public function getParameterContainer()
160161
return $this->parameterContainer;
161162
}
162163

163-
/**
164-
* Is prepared
165-
*
166-
* @return bool
167-
*/
168-
public function isPrepared()
164+
/** Is prepared */
165+
public function isPrepared(): bool
169166
{
170167
return $this->isPrepared;
171168
}
@@ -176,7 +173,7 @@ public function isPrepared()
176173
* @param string|null $sql
177174
* @return Statement|null Provides a fluent interface
178175
*/
179-
public function prepare(?string $sql = null): ?static
176+
public function prepare(?string $sql = null): StatementInterface
180177
{
181178
if ($this->isPrepared) {
182179
throw new Exception\RuntimeException('This statement has already been prepared');
@@ -200,11 +197,9 @@ public function prepare(?string $sql = null): ?static
200197
/**
201198
* Execute
202199
*
203-
* @param null|array|ParameterContainer $parameters
204200
* @throws Exception\RuntimeException
205-
* @return mixed
206201
*/
207-
public function execute($parameters = null)
202+
public function execute(null|array|ParameterContainer $parameters = null): ?ResultInterface
208203
{
209204
if (! $this->isPrepared) {
210205
$this->prepare();

0 commit comments

Comments
 (0)