From 9ccd5c21c13038e061d84c81bd3b60adcddc9b19 Mon Sep 17 00:00:00 2001 From: Jerry <27206617@qq.com> Date: Mon, 1 Jul 2019 22:38:58 +0800 Subject: [PATCH] change method property as needed --- ext/lang.php | 2 +- ext/pdo_mysql.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/lang.php b/ext/lang.php index cacad766..9010dfe9 100644 --- a/ext/lang.php +++ b/ext/lang.php @@ -61,7 +61,7 @@ public static function load(string $dir, string $file, string $lang = ''): void * * @return string */ - private static function detect(): string + public static function detect(): string { static $lang = ''; diff --git a/ext/pdo_mysql.php b/ext/pdo_mysql.php index 5e0e24c3..070b7388 100644 --- a/ext/pdo_mysql.php +++ b/ext/pdo_mysql.php @@ -466,7 +466,7 @@ public function rollback(): bool * * @return string */ - private function get_table(string $table): string + protected function get_table(string $table): string { return $this->prefix . $table; }