Skip to content

Commit a0fb4e1

Browse files
author
Carlos Garcia
committed
feat: replace self::$dataBase with self::db() in clear() function
1 parent d68950a commit a0fb4e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/FileUpdater.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ public static function upgradePhpFiles(): void
253253
if (strpos($fileStr, 'function clear(): void') === false) {
254254
$fileStr = str_replace('function clear()', 'function clear(): void', $fileStr);
255255
}
256+
257+
// reemplazamos self::$dataBase con self::db()
258+
$fileStr = str_replace('self::$dataBase', 'self::db()', $fileStr);
256259
}
257260

258261
// reemplazamos loadFromCode('', $where) por loadWhere($where)

0 commit comments

Comments
 (0)