Skip to content

Commit

Permalink
Renaming filter method to filterEntity to avoind PHP's legacy con…
Browse files Browse the repository at this point in the history
…structor with same name as class.

Warning this is a BC, please adjust local code.
  • Loading branch information
rdohms committed Feb 2, 2012
1 parent fc874ea commit 98a2798
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(Mapping\ClassMetadataFactory $metadataFactory)
/**
* {@inheritDoc}
*/
public function filter($object)
public function filterEntity($object)
{
$this->walkObject($object);
}
Expand Down
2 changes: 1 addition & 1 deletion FilterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface FilterInterface
*
* @param mixed $object
*/
public function filter($object);
public function filterEntity($object);

/**
* Filters a specific property in an object, replacing the current value
Expand Down

0 comments on commit 98a2798

Please sign in to comment.