mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:50:15 +00:00
Changes:
- added type-hints - added some missing documentation
This commit is contained in:
parent
f1867463a0
commit
cefffde691
2 changed files with 4 additions and 3 deletions
|
@ -1527,6 +1527,7 @@ class Database
|
|||
*/
|
||||
public function count($table, array $condition = [], array $params = []): int
|
||||
{
|
||||
// @TODO Can we dump this to have ": int" as returned type-hint?
|
||||
if (empty($table)) {
|
||||
throw new InvalidArgumentException('Parameter "table" cannot be empty.');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue