test fixes and changes for release

This commit is contained in:
Dennis Eichhorn 2022-12-25 00:06:17 +01:00
parent 58908e2752
commit 1b32256f34
2 changed files with 21 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class WikiCategory implements \JsonSerializable
* @var string|WikiCategoryL11n
* @since 1.0.0
*/
private $name = '';
private string | WikiCategoryL11n $name = '';
/**
* Parent category.
@ -117,7 +117,7 @@ class WikiCategory implements \JsonSerializable
{
if ($name instanceof WikiCategoryL11n) {
$this->name = $name;
} elseif (isset($this->name) && $this->name instanceof WikiCategoryL11n) {
} elseif ($this->name instanceof WikiCategoryL11n) {
$this->name->name = $name;
} else {
$this->name = new WikiCategoryL11n();

View File

@ -257,6 +257,25 @@ $CONFIG = [
'root' => '/',
'https' => false,
],
'app' => [
'path' => __DIR__,
'default' => [
'app' => 'Backend',
'id' => 'backend',
'lang' => 'en',
'theme' => 'Backend',
'org' => 1,
],
'domains' => [
'127.0.0.1' => [
'app' => 'Backend',
'id' => 'backend',
'lang' => 'en',
'theme' => 'Backend',
'org' => 1,
],
],
],
'socket' => [
'master' => [
'host' => '127.0.0.1',