aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/SchemaWrapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/DB/SchemaWrapper.php')
-rw-r--r--lib/private/DB/SchemaWrapper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/SchemaWrapper.php b/lib/private/DB/SchemaWrapper.php
index 31b74014a98..9dae9ab6248 100644
--- a/lib/private/DB/SchemaWrapper.php
+++ b/lib/private/DB/SchemaWrapper.php
@@ -62,7 +62,7 @@ class SchemaWrapper implements ISchemaWrapper {
public function getTableNamesWithoutPrefix() {
$tableNames = $this->schema->getTableNames();
return array_map(function ($tableName) {
- if (strpos($tableName, $this->connection->getPrefix()) === 0) {
+ if (str_starts_with($tableName, $this->connection->getPrefix())) {
return substr($tableName, strlen($this->connection->getPrefix()));
}