Skip to content

Commit

Permalink
fix an issue with slots when content passed is equal to null (#18246)
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid authored and taylorotwell committed Mar 8, 2017
1 parent 55e6023 commit aabfebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/View/Concerns/ManagesComponents.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function componentData($name)
*/
public function slot($name, $content = null)
{
if ($content !== null) {
if (count(func_get_args()) == 2) {
$this->slots[$this->currentComponent()][$name] = $content;
} else {
if (ob_start()) {
Expand Down

0 comments on commit aabfebe

Please sign in to comment.