Fixes documentation for _getAttributeItems()
Enforces parameter type
Changes stdClass to array in _createItem() methods to fix errors in scrutinizer-ci