diff --git a/config/projects.yml b/config/projects.yml index 59faf8319..b39e80efc 100644 --- a/config/projects.yml +++ b/config/projects.yml @@ -46,8 +46,8 @@ block-bundle: minimum_stability: dev docs_path: 'bundles/block' test_kernel: Symfony\Cmf\Bundle\BlockBundle\Tests\Fixtures\App\Kernel - deprecation_warnings: 0 - php: ['7.1'] + deprecation_warnings: "/.*each.*/" + php: ['7.1', '7.2'] make_tasks: unit_tests: ~ functional_tests_phpcr: ~ diff --git a/src/Console/Command/DispatchCommand.php b/src/Console/Command/DispatchCommand.php index ffc4e0d6c..39541aed7 100644 --- a/src/Console/Command/DispatchCommand.php +++ b/src/Console/Command/DispatchCommand.php @@ -599,6 +599,10 @@ private function setVersionConstraintsInComposer($path, array $projectConfig, $c unset($composerAsJson['prefer-stable']); } + // add type information if not set + if (preg_match('/bundle/', $composerAsJson['name'])) { + $composerAsJson['type'] = 'symfony-bundle'; + } $composerAsString = json_encode($composerAsJson, JSON_PRETTY_PRINT); $composerAsString = str_replace('\/', '/', $composerAsString); $composerAsString .= PHP_EOL;