@@ -29,6 +29,12 @@ public function getTestDetails()
29
29
// only requires doctrine/dbal. But we're testing with the ORM,
30
30
// so let's install it
31
31
->addExtraDependencies ('doctrine/orm:@stable ' )
32
+ /*
33
+ * @legacy doctrine/migrations does not support psr/log >=2
34
+ * some symfony components use psr/log ^1 || ^2 || ^3
35
+ * once doctrine/migrations supports psr log >= 2, this line can be removed.
36
+ */
37
+ ->addExtraDependencies ('psr/log:^1.1.4 ' )
32
38
->assert (function (string $ output , string $ directory ) {
33
39
$ this ->assertStringContainsString ('Success ' , $ output );
34
40
@@ -54,6 +60,12 @@ public function getTestDetails()
54
60
// sync the database, so no changes are needed
55
61
->configureDatabase ()
56
62
->addExtraDependencies ('doctrine/orm:@stable ' )
63
+ /*
64
+ * @legacy doctrine/migrations does not support psr/log >=2
65
+ * some symfony components use psr/log ^1 || ^2 || ^3
66
+ * once doctrine/migrations supports psr log >= 2, this line can be removed.
67
+ */
68
+ ->addExtraDependencies ('psr/log:^1.1.4 ' )
57
69
->assert (function (string $ output , string $ directory ) {
58
70
$ this ->assertStringNotContainsString ('Success ' , $ output );
59
71
@@ -71,6 +83,12 @@ public function getTestDetails()
71
83
->configureDatabase (false )
72
84
->addRequiredPackageVersion ('doctrine/doctrine-migrations-bundle ' , '>=3 ' )
73
85
->addExtraDependencies ('doctrine/orm:@stable ' )
86
+ /*
87
+ * @legacy doctrine/migrations does not support psr/log >=2
88
+ * some symfony components use psr/log ^1 || ^2 || ^3
89
+ * once doctrine/migrations supports psr log >= 2, this line can be removed.
90
+ */
91
+ ->addExtraDependencies ('psr/log:^1.1.4 ' )
74
92
// generate a migration first
75
93
->addPreMakeCommand ('php bin/console make:migration ' )
76
94
->assert (function (string $ output , string $ directory ) {
@@ -90,6 +108,12 @@ public function getTestDetails()
90
108
->configureDatabase (false )
91
109
->addRequiredPackageVersion ('doctrine/doctrine-migrations-bundle ' , '>=3 ' )
92
110
->addExtraDependencies ('doctrine/orm:@stable ' )
111
+ /*
112
+ * @legacy doctrine/migrations does not support psr/log >=2
113
+ * some symfony components use psr/log ^1 || ^2 || ^3
114
+ * once doctrine/migrations supports psr log >= 2, this line can be removed.
115
+ */
116
+ ->addExtraDependencies ('psr/log:^1.1.4 ' )
93
117
// generate a migration first
94
118
->addPreMakeCommand ('php bin/console make:migration ' )
95
119
->assert (function (string $ output , string $ directory ) {
0 commit comments