File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ jobs:
255255 strategy :
256256 matrix :
257257 php-version :
258- - " 8.3 "
258+ - " 8.4 "
259259
260260 steps :
261261 - name : " Checkout"
@@ -269,7 +269,9 @@ jobs:
269269 fail-fast : true
270270
271271 - name : " Lower minimum stability"
272- run : " composer config minimum-stability dev"
272+ run : |
273+ composer config minimum-stability dev
274+ composer require --no-update --dev symfony/console:^8 symfony/cache:^8
273275
274276 - name : " Install development dependencies with Composer"
275277 uses : " ramsey/composer-install@v3"
Original file line number Diff line number Diff line change 1313use Symfony \Component \Console \Application ;
1414use Symfony \Component \Console \Tester \CommandTester ;
1515
16+ use function method_exists ;
1617use function str_replace ;
1718
1819class RunSqlCommandTest extends TestCase
@@ -26,7 +27,12 @@ protected function setUp(): void
2627 $ this ->connectionMock = $ this ->createMock (Connection::class);
2728 $ this ->command = new RunSqlCommand (new SingleConnectionProvider ($ this ->connectionMock ));
2829
29- (new Application ())->add ($ this ->command );
30+ if (method_exists (Application::class, 'addCommand ' )) {
31+ // @phpstan-ignore method.notFound (This method will be added in Symfony 7.4)
32+ (new Application ())->addCommand ($ this ->command );
33+ } else {
34+ (new Application ())->add ($ this ->command );
35+ }
3036
3137 $ this ->commandTester = new CommandTester ($ this ->command );
3238 }
You can’t perform that action at this time.
0 commit comments