Skip to content

Commit f114ea7

Browse files
committed
add symfony type information
1 parent d6bbdfc commit f114ea7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

config/projects.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ block-bundle:
4646
minimum_stability: dev
4747
docs_path: 'bundles/block'
4848
test_kernel: Symfony\Cmf\Bundle\BlockBundle\Tests\Fixtures\App\Kernel
49-
deprecation_warnings: 0
50-
php: ['7.1']
49+
deprecation_warnings: "/.*each.*/"
50+
php: ['7.1', '7.2']
5151
make_tasks:
5252
unit_tests: ~
5353
functional_tests_phpcr: ~

src/Console/Command/DispatchCommand.php

+4
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,10 @@ private function setVersionConstraintsInComposer($path, array $projectConfig, $c
599599
unset($composerAsJson['prefer-stable']);
600600
}
601601

602+
// add type information if not set
603+
if (preg_match('/bundle/', $composerAsJson['name'])) {
604+
$composerAsJson['type'] = 'symfony-bundle';
605+
}
602606
$composerAsString = json_encode($composerAsJson, JSON_PRETTY_PRINT);
603607
$composerAsString = str_replace('\/', '/', $composerAsString);
604608
$composerAsString .= PHP_EOL;

0 commit comments

Comments
 (0)