Skip to content

Commit ce80cc2

Browse files
committed
CS
1 parent a609759 commit ce80cc2

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

phpstan.neon

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,13 @@ parameters:
133133
-
134134
rawMessage: 'Call to function array_key_exists() with ''testKey2'' and array{testKey1: null, testKey2: ''''} will always evaluate to true.'
135135
identifier: function.alreadyNarrowedType
136-
count: 4
136+
count: 1
137+
path: benchmarks/BasicPhpBenchmark.php
138+
139+
-
140+
rawMessage: 'Call to function array_key_exists() with ''testKey2'' and *NEVER* will always evaluate to true.'
141+
identifier: function.alreadyNarrowedType
142+
count: 3
137143
path: benchmarks/BasicPhpBenchmark.php
138144

139145
-

src/Fluent/QueryExecute.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ protected function resetQuery(): void
7171
/**
7272
* @throws Db\Exceptions\ConnectionException
7373
* @throws Db\Exceptions\QueryException
74-
* @throws Exceptions\QueryException
7574
* @throws Exceptions\QueryBuilderException
75+
* @throws Exceptions\QueryException
7676
*/
7777
public function execute(): Db\Result
7878
{
@@ -95,8 +95,8 @@ public function execute(): Db\Result
9595
/**
9696
* @throws Db\Exceptions\ConnectionException
9797
* @throws Db\Exceptions\QueryException
98-
* @throws Exceptions\QueryException
9998
* @throws Exceptions\QueryBuilderException
99+
* @throws Exceptions\QueryException
100100
*/
101101
public function reexecute(): Db\Result
102102
{
@@ -131,8 +131,8 @@ public function free(): bool
131131
/**
132132
* @throws Db\Exceptions\ConnectionException
133133
* @throws Db\Exceptions\QueryException
134-
* @throws Exceptions\QueryException
135134
* @throws Exceptions\QueryBuilderException
135+
* @throws Exceptions\QueryException
136136
*/
137137
public function count(): int
138138
{
@@ -144,8 +144,8 @@ public function count(): int
144144
/**
145145
* @throws Db\Exceptions\ConnectionException
146146
* @throws Db\Exceptions\QueryException
147-
* @throws Exceptions\QueryException
148147
* @throws Exceptions\QueryBuilderException
148+
* @throws Exceptions\QueryException
149149
*/
150150
public function getAffectedRows(): int
151151
{
@@ -156,8 +156,8 @@ public function getAffectedRows(): int
156156
/**
157157
* @throws Db\Exceptions\ConnectionException
158158
* @throws Db\Exceptions\QueryException
159-
* @throws Exceptions\QueryException
160159
* @throws Exceptions\QueryBuilderException
160+
* @throws Exceptions\QueryException
161161
*/
162162
public function fetch(): Db\Row|null
163163
{
@@ -169,8 +169,8 @@ public function fetch(): Db\Row|null
169169
* @return mixed value on success, null if no next record
170170
* @throws Db\Exceptions\ConnectionException
171171
* @throws Db\Exceptions\QueryException
172-
* @throws Exceptions\QueryException
173172
* @throws Exceptions\QueryBuilderException
173+
* @throws Exceptions\QueryException
174174
*/
175175
public function fetchSingle(): mixed
176176
{
@@ -182,8 +182,8 @@ public function fetchSingle(): mixed
182182
* @return list<Db\Row>
183183
* @throws Db\Exceptions\ConnectionException
184184
* @throws Db\Exceptions\QueryException
185-
* @throws Exceptions\QueryException
186185
* @throws Exceptions\QueryBuilderException
186+
* @throws Exceptions\QueryException
187187
*/
188188
public function fetchAll(int|null $offset = null, int|null $limit = null): array
189189
{
@@ -195,8 +195,8 @@ public function fetchAll(int|null $offset = null, int|null $limit = null): array
195195
* @return array<int|string, mixed>
196196
* @throws Db\Exceptions\ConnectionException
197197
* @throws Db\Exceptions\QueryException
198-
* @throws Exceptions\QueryException
199198
* @throws Exceptions\QueryBuilderException
199+
* @throws Exceptions\QueryException
200200
*/
201201
public function fetchAssoc(string $assoc): array
202202
{
@@ -208,8 +208,8 @@ public function fetchAssoc(string $assoc): array
208208
* @return array<int|string, mixed>
209209
* @throws Db\Exceptions\ConnectionException
210210
* @throws Db\Exceptions\QueryException
211-
* @throws Exceptions\QueryException
212211
* @throws Exceptions\QueryBuilderException
212+
* @throws Exceptions\QueryException
213213
*/
214214
public function fetchPairs(string|null $key = null, string|null $value = null): array
215215
{
@@ -221,8 +221,8 @@ public function fetchPairs(string|null $key = null, string|null $value = null):
221221
* @return Db\RowIterator<int, Db\Row>
222222
* @throws Db\Exceptions\ConnectionException
223223
* @throws Db\Exceptions\QueryException
224-
* @throws Exceptions\QueryException
225224
* @throws Exceptions\QueryBuilderException
225+
* @throws Exceptions\QueryException
226226
*/
227227
public function fetchIterator(): Db\RowIterator
228228
{
@@ -234,8 +234,8 @@ public function fetchIterator(): Db\RowIterator
234234
/**
235235
* @throws Db\Exceptions\ConnectionException
236236
* @throws Db\Exceptions\QueryException
237-
* @throws Exceptions\QueryException
238237
* @throws Exceptions\QueryBuilderException
238+
* @throws Exceptions\QueryException
239239
*/
240240
public function asyncExecute(): Db\AsyncQuery
241241
{

0 commit comments

Comments
 (0)