Fix type error in Context::loadLang()

This commit is contained in:
Kijin Sung 2023-10-03 11:50:00 +09:00
parent b373dc94c0
commit 3294bccda8

View file

@ -104,7 +104,7 @@ class Lang
* @param string $plugin_name
* @return bool
*/
public function loadDirectory(string $dir, string $plugin_name = ''): bool
public function loadDirectory(string $dir, ?string $plugin_name = null): bool
{
// Do not load the same directory twice.
$dir = rtrim($dir, '/');