Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not merge constraints within interfaces
- Loading branch information
1 parent
c2e0aab
commit d8fc004
Showing
6 changed files
with
77 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Symfony/Component/Validator/Tests/Fixtures/AbstractPropertyGetter.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Validator\Tests\Fixtures; | ||
|
||
abstract class AbstractPropertyGetter implements PropertyGetterInterface | ||
{ | ||
private $property; | ||
|
||
public function getProperty() | ||
{ | ||
return $this->property; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/Symfony/Component/Validator/Tests/Fixtures/ChildGetterInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Validator\Tests\Fixtures; | ||
|
||
interface ChildGetterInterface extends PropertyGetterInterface | ||
{ | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Symfony/Component/Validator/Tests/Fixtures/PropertyGetter.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Validator\Tests\Fixtures; | ||
|
||
/** | ||
* This class has two paths to PropertyGetterInterface: | ||
* PropertyGetterInterface <- AbstractPropertyGetter <- PropertyGetter | ||
* PropertyGetterInterface <- ChildGetterInterface <- PropertyGetter | ||
*/ | ||
class PropertyGetter extends AbstractPropertyGetter implements ChildGetterInterface | ||
{ | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Symfony/Component/Validator/Tests/Fixtures/PropertyGetterInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\Validator\Tests\Fixtures; | ||
|
||
interface PropertyGetterInterface | ||
{ | ||
public function getProperty(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters