Skip to content

Commit

Permalink
Use getter instead of accessing the protected property directly. (#14984
Browse files Browse the repository at this point in the history
)

PHP Fatal error:  Uncaught Error: Cannot access protected property
  • Loading branch information
yajra authored and taylorotwell committed Aug 24, 2016
1 parent cbc8d6e commit 69e5b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Query/JoinClause.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct(Builder $parentQuery, $type, $table)
$this->parentQuery = $parentQuery;

parent::__construct(
$parentQuery->connection, $parentQuery->grammar, $parentQuery->processor
$parentQuery->getConnection(), $parentQuery->getGrammar(), $parentQuery->getProcessor()
);
}

Expand Down

0 comments on commit 69e5b7e

Please sign in to comment.