# Pimcore namespace "Pimcore\\Model\\Object" error

**URL:** https://forum.ficusonline.com/t/topic/296
**Category:** WEB Design
**Created:** [2019 年 5 月 16 日午前 5:32 UTC](https://forum.ficusonline.com/t/topic/296 "2019-05-16T05:32:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)
#### Post date: [2019 年 5 月 16 日午前 5:32 UTC](https://forum.ficusonline.com/t/topic/296/1 "2019-05-16T05:32:06Z")

</div>

php7.2以降では"object"は予約語(reserved word)となっているため、ネームスペースで指定していると以下のエラーが表示されます。

```auto
Message: Compile Error: Cannot use Pimcore\Model\Object as Object because 'Object' is a special class name

```

[https://github.com/pimcore/pimcore/issues/1853](https://github.com/pimcore/pimcore/issues/1853)

[https://github.com/pimcore/pimcore/issues/1874](https://github.com/pimcore/pimcore/issues/1874)

一部ファイルで **“Object”** をネームスペースで指定していたため、これを **“DataObject”** へ修正。

**/src/AppBundle/Controller/TestController.php**

`use Pimcore\Model\Object; ---> use Pimcore\Model\DataObject;`
