Skip to content

Commit 88e0e04

Browse files
committed
improved phpDoc
1 parent f5e170d commit 88e0e04

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/Database/IConventions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface IConventions
1717

1818
/**
1919
* Returns primary key for table.
20-
* @return string|array|null
20+
* @return string|string[]|null
2121
*/
2222
function getPrimary(string $table);
2323

src/Database/IStructure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function getColumns(string $table): array;
3939

4040
/**
4141
* Returns table primary key.
42-
* @return string|array|null
42+
* @return string|string[]|null
4343
*/
4444
function getPrimaryKey(string $table);
4545

src/Database/Structure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getColumns(string $table): array
5656

5757

5858
/**
59-
* @return string|array|null
59+
* @return string|string[]|null
6060
*/
6161
public function getPrimaryKey(string $table)
6262
{

src/Database/Table/Selection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Selection implements \Iterator, IRowContainer, \ArrayAccess, \Countable
3737
/** @var string table name */
3838
protected $name;
3939

40-
/** @var string|array|null primary key field name */
40+
/** @var string|string[]|null primary key field name */
4141
protected $primary;
4242

4343
/** @var string|bool primary column sequence name, false for autodetection */
@@ -115,7 +115,7 @@ public function getName(): string
115115

116116

117117
/**
118-
* @return string|array|null
118+
* @return string|string[]|null
119119
*/
120120
public function getPrimary(bool $throw = true)
121121
{

0 commit comments

Comments
 (0)