Skip to content

Commit 7c2b4e2

Browse files
committed
docs: add PHPDoc types
1 parent 11e23a4 commit 7c2b4e2

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎system/Test/Mock/MockConnection.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
*/
2424
class MockConnection extends BaseConnection
2525
{
26+
/**
27+
* @var array{connect?: mixed, execute?: bool|object}
28+
*/
2629
protected $returnValues = [];
2730

2831
/**

‎tests/system/Database/BaseConnectionTest.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ public function testEscapeIdentifiers(string $item, string $expected): void
298298
$this->assertSame($expected, $return);
299299
}
300300

301+
/**
302+
* @return array<string, list<string>>
303+
*/
301304
public static function provideEscapeIdentifiers(): iterable
302305
{
303306
yield from [
@@ -319,6 +322,9 @@ public function testEscapeIdentifier(string $item, string $expected): void
319322
$this->assertSame($expected, $return);
320323
}
321324

325+
/**
326+
* @return array<string, list<string>>
327+
*/
322328
public static function provideEscapeIdentifier(): iterable
323329
{
324330
yield from [

0 commit comments

Comments
 (0)