mirror of
https://github.com/friendica/friendica
synced 2025-04-22 15:50:10 +00:00
PHPStan: Fix missing requires/namespaces
This commit is contained in:
parent
e40917b792
commit
10b72b0e9e
35 changed files with 89 additions and 37 deletions
|
@ -9,6 +9,8 @@ use Friendica\Database\DBM;
|
|||
use dba;
|
||||
|
||||
require_once "boot.php";
|
||||
require_once 'include/dba.php';
|
||||
require_once 'include/enotify.php';
|
||||
require_once "include/text.php";
|
||||
|
||||
/**
|
||||
|
@ -565,7 +567,7 @@ class DBStructure {
|
|||
private static function createIndex($indexname, $fieldnames, $method = "ADD") {
|
||||
$method = strtoupper(trim($method));
|
||||
if ($method!="" && $method!="ADD") {
|
||||
throw new Exception("Invalid parameter 'method' in self::createIndex(): '$method'");
|
||||
throw new \Exception("Invalid parameter 'method' in self::createIndex(): '$method'");
|
||||
}
|
||||
|
||||
if ($fieldnames[0] == "UNIQUE") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue