Skip to content

Typo in Maphper\Relation\One? #73

@ckrudelux

Description

@ckrudelux

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions