mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Merge pull request #9378 from neznaika0/refactor/phpstan-generator-return-type
refactor: Fix phpstan generator.returnType
This commit is contained in:
commit
d809c3c5a7
@ -19,6 +19,7 @@ use CodeIgniter\Database\RawSql;
|
||||
use CodeIgniter\Database\SQLSRV\Builder as SQLSRVBuilder;
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\Mock\MockConnection;
|
||||
use Generator;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\Attributes\Group;
|
||||
|
||||
@ -82,7 +83,7 @@ final class SelectTest extends CIUnitTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<list<RawSql|string>|string>
|
||||
* @return Generator<list<RawSql|string>|string>
|
||||
*/
|
||||
public static function provideSelectAcceptsArrayWithRawSql(): iterable
|
||||
{
|
||||
|
@ -1,8 +0,0 @@
|
||||
# total 1 error
|
||||
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
-
|
||||
message: '#^Yield can be used only with these return types\: Generator, Iterator, Traversable, iterable\.$#'
|
||||
count: 1
|
||||
path: ../../tests/system/Database/Builder/SelectTest.php
|
@ -18,7 +18,6 @@ includes:
|
||||
- expr.resultUnused.neon
|
||||
- function.alreadyNarrowedType.neon
|
||||
- function.inner.neon
|
||||
- generator.returnType.neon
|
||||
- generator.valueType.neon
|
||||
- isset.offset.neon
|
||||
- isset.property.neon
|
||||
|
Loading…
x
Reference in New Issue
Block a user