add type to composer.json