Fixes documentation for _getAttributeItems()
Enforces parameter type
Changes stdClass to array in _createItem() methods to fix errors in scrutinizer-ci
Merge pull request #776 from nsendetzky/master

Fixes scrutinizer-ci errors