-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Current code:
public function __construct(\Maphper\Maphper $mapper, $parentField, $localField, array $criteria = []) {
if ($criteria) $mapper = $mapper->filter($this->criteira);
$this->mapper = $mapper;
$this->parentField = $parentField;
$this->localField = $localField;
}
$this->criteira probably should be $criteria losing the $this and correct the spelling matching the argument.
The fixed version:
public function __construct(\Maphper\Maphper $mapper, $parentField, $localField, array $criteria = []) {
if ($criteria) $mapper = $mapper->filter(criteria);
$this->mapper = $mapper;
$this->parentField = $parentField;
$this->localField = $localField;
}
garrettw
Metadata
Metadata
Assignees
Labels
No labels