Use root namespace

This commit is contained in:
Dennis Eichhorn 2018-05-30 13:39:00 +02:00
parent ffbeae247c
commit 976656910d
3 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ class Navigation
*/
public static function install(string $path = null, DatabasePool $dbPool = null) : void
{
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
$navData = \json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
$class = '\\Modules\\Navigation\\Admin\\Installer';
/** @var $class \Modules\Navigation\Admin\Installer */

View File

@ -124,7 +124,7 @@ class DrawImage implements ArrayableInterface, \JsonSerializable
public function __toString()
{
return json_encode($this->toArray());
return \json_encode($this->toArray());
}
public function jsonSerialize()

View File

@ -26,7 +26,7 @@ class DrawImageMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array
* @var array<string, array<string, string>>
* @since 1.0.0
*/
static protected $columns = [
@ -38,7 +38,7 @@ class DrawImageMapper extends DataMapperAbstract
/**
* Has one relation.
*
* @var array
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $ownsOne = [