Skip to content

Commit aabfebe

Browse files
themsaidtaylorotwell
authored andcommitted
fix an issue with slots when content passed is equal to null (#18246)
1 parent 55e6023 commit aabfebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/View/Concerns/ManagesComponents.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected function componentData($name)
8888
*/
8989
public function slot($name, $content = null)
9090
{
91-
if ($content !== null) {
91+
if (count(func_get_args()) == 2) {
9292
$this->slots[$this->currentComponent()][$name] = $content;
9393
} else {
9494
if (ob_start()) {

0 commit comments

Comments
 (0)