- added type-hints
- added some missing documentation
This commit is contained in:
Roland Häder 2022-06-20 03:10:02 +02:00
parent f1867463a0
commit cefffde691
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
2 changed files with 4 additions and 3 deletions

View file

@ -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.');
}