adding type to composer.json