Skip to content

Commit 4186af1

Browse files
committed
Merge branch '8.x'
# Conflicts: # composer.json # src/Illuminate/Mail/composer.json # src/Illuminate/Support/composer.json
2 parents 85ceb55 + 7a82103 commit 4186af1

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"doctrine/inflector": "^2.0",
2323
"dragonmantank/cron-expression": "^3.1",
2424
"egulias/email-validator": "^3.1",
25-
"league/commonmark": "^1.3",
25+
"league/commonmark": "^1.3|^2.0",
2626
"league/flysystem": "^2.0",
2727
"monolog/monolog": "^2.0",
2828
"nesbot/carbon": "^2.31",

src/Illuminate/Bus/PendingBatch.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ public function __construct(Container $container, Collection $jobs)
6262
*/
6363
public function add($jobs)
6464
{
65-
$this->jobs->push($jobs);
65+
foreach ($jobs as $job) {
66+
$this->jobs->push($job);
67+
}
6668

6769
return $this;
6870
}

src/Illuminate/Database/Query/Builder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ public function orderBy($column, $direction = 'asc')
20452045
/**
20462046
* Add a descending "order by" clause to the query.
20472047
*
2048-
* @param string $column
2048+
* @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
20492049
* @return $this
20502050
*/
20512051
public function orderByDesc($column)
@@ -2056,7 +2056,7 @@ public function orderByDesc($column)
20562056
/**
20572057
* Add an "order by" clause for a timestamp to the query.
20582058
*
2059-
* @param string $column
2059+
* @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
20602060
* @return $this
20612061
*/
20622062
public function latest($column = 'created_at')
@@ -2067,7 +2067,7 @@ public function latest($column = 'created_at')
20672067
/**
20682068
* Add an "order by" clause for a timestamp to the query.
20692069
*
2070-
* @param string $column
2070+
* @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
20712071
* @return $this
20722072
*/
20732073
public function oldest($column = 'created_at')
@@ -2213,7 +2213,7 @@ public function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
22132213
/**
22142214
* Remove all existing orders and optionally add a new order.
22152215
*
2216-
* @param string|null $column
2216+
* @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string|null $column
22172217
* @param string $direction
22182218
* @return $this
22192219
*/

src/Illuminate/Mail/Markdown.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Illuminate\Support\HtmlString;
77
use Illuminate\Support\Str;
88
use League\CommonMark\CommonMarkConverter;
9-
use League\CommonMark\Environment;
109
use League\CommonMark\Extension\Table\TableExtension;
1110
use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles;
1211

@@ -104,15 +103,13 @@ public function renderText($view, array $data = [])
104103
*/
105104
public static function parse($text)
106105
{
107-
$environment = Environment::createCommonMarkEnvironment();
108-
109-
$environment->addExtension(new TableExtension);
110-
111106
$converter = new CommonMarkConverter([
112107
'allow_unsafe_links' => false,
113-
], $environment);
108+
]);
109+
110+
$converter->getEnvironment()->addExtension(new TableExtension());
114111

115-
return new HtmlString($converter->convertToHtml($text));
112+
return new HtmlString((string) $converter->convertToHtml($text));
116113
}
117114

118115
/**

src/Illuminate/Mail/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"illuminate/contracts": "^9.0",
2222
"illuminate/macroable": "^9.0",
2323
"illuminate/support": "^9.0",
24-
"league/commonmark": "^1.3",
24+
"league/commonmark": "^1.3|^2.0",
2525
"psr/log": "^1.0",
2626
"swiftmailer/swiftmailer": "^6.2.7",
2727
"tijsverkoyen/css-to-inline-styles": "^2.2.2"

src/Illuminate/Support/Str.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ public static function markdown($string, array $options = [])
403403
{
404404
$converter = new GithubFlavoredMarkdownConverter($options);
405405

406-
return $converter->convertToHtml($string);
406+
return (string) $converter->convertToHtml($string);
407407
}
408408

409409
/**

src/Illuminate/Support/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
"suggest": {
4444
"illuminate/filesystem": "Required to use the composer class (^9.0).",
45-
"league/commonmark": "Required to use Str::markdown() and Stringable::markdown() (^1.3).",
45+
"league/commonmark": "Required to use Str::markdown() and Stringable::markdown() (^1.3|^2.0).",
4646
"ramsey/uuid": "Required to use Str::uuid() (^4.0).",
4747
"symfony/process": "Required to use the composer class (^5.3).",
4848
"symfony/var-dumper": "Required to use the dd function (^5.3).",

0 commit comments

Comments
 (0)