Skip to content

Commit 838592e

Browse files
driesvintscrynoboneJubekidatlechinStyleCIBot
authored
[11.x] Symfony v7.0 support (#48403)
* Try Symfony v7 * wip * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Update src/Illuminate/Http/Request.php Co-authored-by: Julius Kiekbusch <[email protected]> * Update src/Illuminate/Console/Command.php Co-authored-by: Ngô Quốc Đạt <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Apply fixes from StyleCI * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Uses Termwind v2 * Update composer.json * Update composer.json * Update composer.json * Update composer.json --------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Julius Kiekbusch <[email protected]> Co-authored-by: Ngô Quốc Đạt <[email protected]> Co-authored-by: StyleCI Bot <[email protected]> Co-authored-by: Nuno Maduro <[email protected]>
1 parent 106c015 commit 838592e

File tree

24 files changed

+69
-90
lines changed

24 files changed

+69
-90
lines changed

composer.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,30 @@
2828
"doctrine/inflector": "^2.0.5",
2929
"dragonmantank/cron-expression": "^3.3.2",
3030
"egulias/email-validator": "^3.2.1|^4.0",
31-
"fruitcake/php-cors": "^1.2",
31+
"fruitcake/php-cors": "^1.3",
3232
"guzzlehttp/uri-template": "^1.0",
33-
"laravel/prompts": "^0.1.9",
33+
"laravel/prompts": "dev-symfony7",
3434
"laravel/serializable-closure": "^1.3",
3535
"league/commonmark": "^2.2.1",
3636
"league/flysystem": "^3.8.0",
3737
"monolog/monolog": "^3.0",
3838
"nesbot/carbon": "^2.67",
39-
"nunomaduro/termwind": "^1.13",
39+
"nunomaduro/termwind": "^2.0",
4040
"psr/container": "^1.1.1|^2.0.1",
4141
"psr/log": "^1.0|^2.0|^3.0",
4242
"psr/simple-cache": "^1.0|^2.0|^3.0",
4343
"ramsey/uuid": "^4.7",
44-
"symfony/console": "^6.3",
45-
"symfony/error-handler": "^6.3",
46-
"symfony/finder": "^6.3",
47-
"symfony/http-foundation": "^6.3",
48-
"symfony/http-kernel": "^6.3",
49-
"symfony/mailer": "^6.3",
50-
"symfony/mime": "^6.3",
51-
"symfony/process": "^6.3",
52-
"symfony/routing": "^6.3",
53-
"symfony/uid": "^6.3",
54-
"symfony/var-dumper": "^6.3",
44+
"symfony/console": "^7.0",
45+
"symfony/error-handler": "^7.0",
46+
"symfony/finder": "^7.0",
47+
"symfony/http-foundation": "^7.0",
48+
"symfony/http-kernel": "^7.0",
49+
"symfony/mailer": "^7.0",
50+
"symfony/mime": "^7.0",
51+
"symfony/process": "^7.0",
52+
"symfony/routing": "^7.0",
53+
"symfony/uid": "^7.0",
54+
"symfony/var-dumper": "^7.0",
5555
"tijsverkoyen/css-to-inline-styles": "^2.2.5",
5656
"vlucas/phpdotenv": "^5.4.1",
5757
"voku/portable-ascii": "^2.0"
@@ -109,8 +109,8 @@
109109
"phpstan/phpstan": "^1.4.7",
110110
"phpunit/phpunit": "^10.0.7",
111111
"predis/predis": "^2.0.2",
112-
"symfony/cache": "^6.3",
113-
"symfony/http-client": "^6.3.4"
112+
"symfony/cache": "^7.0",
113+
"symfony/http-client": "^7.0"
114114
},
115115
"provide": {
116116
"psr/container-implementation": "1.1|2.0",

src/Illuminate/Cache/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"illuminate/database": "Required to use the database cache driver (^11.0).",
4141
"illuminate/filesystem": "Required to use the file cache driver (^11.0).",
4242
"illuminate/redis": "Required to use the redis cache driver (^11.0).",
43-
"symfony/cache": "Required to use PSR-6 cache bridge (^6.3)."
43+
"symfony/cache": "Required to use PSR-6 cache bridge (^7.0)."
4444
},
4545
"config": {
4646
"sort-packages": true

src/Illuminate/Collections/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}
3434
},
3535
"suggest": {
36-
"symfony/var-dumper": "Required to use the dump method (^6.3)."
36+
"symfony/var-dumper": "Required to use the dump method (^7.0)."
3737
},
3838
"config": {
3939
"sort-packages": true

src/Illuminate/Console/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ public function output()
206206
* Add a command to the console.
207207
*
208208
* @param \Symfony\Component\Console\Command\Command $command
209-
* @return \Symfony\Component\Console\Command\Command
209+
* @return \Symfony\Component\Console\Command\Command|null
210210
*/
211-
public function add(SymfonyCommand $command)
211+
public function add(SymfonyCommand $command): ?SymfonyCommand
212212
{
213213
if ($command instanceof Command) {
214214
$command->setLaravel($this->laravel);

src/Illuminate/Console/BufferedConsoleOutput.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ public function fetch()
2727

2828
/**
2929
* {@inheritdoc}
30-
*
31-
* @return void
3230
*/
33-
protected function doWrite(string $message, bool $newline)
31+
protected function doWrite(string $message, bool $newline): void
3432
{
3533
$this->buffer .= $message;
3634

src/Illuminate/Console/Command.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ public function run(InputInterface $input, OutputInterface $output): int
190190
*
191191
* @param \Symfony\Component\Console\Input\InputInterface $input
192192
* @param \Symfony\Component\Console\Output\OutputInterface $output
193-
* @return int
194193
*/
195-
protected function execute(InputInterface $input, OutputInterface $output)
194+
protected function execute(InputInterface $input, OutputInterface $output): int
196195
{
197196
if ($this instanceof Isolatable && $this->option('isolated') !== false &&
198197
! $this->commandIsolationMutex()->create($this)) {

src/Illuminate/Console/OutputStyle.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function askQuestion(Question $question): mixed
6464
/**
6565
* {@inheritdoc}
6666
*/
67-
public function write(string|iterable $messages, bool $newline = false, int $options = 0)
67+
public function write(string|iterable $messages, bool $newline = false, int $options = 0): void
6868
{
6969
$this->newLinesWritten = $this->trailingNewLineCount($messages) + (int) $newline;
7070
$this->newLineWritten = $this->newLinesWritten > 0;
@@ -74,10 +74,8 @@ public function write(string|iterable $messages, bool $newline = false, int $opt
7474

7575
/**
7676
* {@inheritdoc}
77-
*
78-
* @return void
7977
*/
80-
public function writeln(string|iterable $messages, int $type = self::OUTPUT_NORMAL)
78+
public function writeln(string|iterable $messages, int $type = self::OUTPUT_NORMAL): void
8179
{
8280
$this->newLinesWritten = $this->trailingNewLineCount($messages) + 1;
8381
$this->newLineWritten = true;
@@ -87,10 +85,8 @@ public function writeln(string|iterable $messages, int $type = self::OUTPUT_NORM
8785

8886
/**
8987
* {@inheritdoc}
90-
*
91-
* @return void
9288
*/
93-
public function newLine(int $count = 1)
89+
public function newLine(int $count = 1): void
9490
{
9591
$this->newLinesWritten += $count;
9692
$this->newLineWritten = $this->newLinesWritten > 0;

src/Illuminate/Console/QuestionHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class QuestionHelper extends SymfonyQuestionHelper
1717
*
1818
* @return void
1919
*/
20-
protected function writePrompt(OutputInterface $output, Question $question)
20+
protected function writePrompt(OutputInterface $output, Question $question): void
2121
{
2222
$text = OutputFormatter::escapeTrailingBackslash($question->getQuestion());
2323

src/Illuminate/Console/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"illuminate/view": "^11.0",
2424
"laravel/prompts": "^0.1.9",
2525
"nunomaduro/termwind": "^1.13",
26-
"symfony/console": "^6.3",
27-
"symfony/process": "^6.3"
26+
"symfony/console": "^7.0",
27+
"symfony/process": "^7.0"
2828
},
2929
"autoload": {
3030
"psr-4": {

src/Illuminate/Cookie/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"illuminate/contracts": "^11.0",
2121
"illuminate/macroable": "^11.0",
2222
"illuminate/support": "^11.0",
23-
"symfony/http-foundation": "^6.3",
24-
"symfony/http-kernel": "^6.3"
23+
"symfony/http-foundation": "^7.0",
24+
"symfony/http-kernel": "^7.0"
2525
},
2626
"autoload": {
2727
"psr-4": {

0 commit comments

Comments
 (0)