File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Symfony/Component/Validator/Mapping/Loader Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public function loadClassMetadata(ClassMetadata $metadata)
57
57
}
58
58
59
59
foreach ($ reflClass ->getProperties () as $ property ) {
60
- if ($ property ->getDeclaringClass ()->name == $ className ) {
60
+ if ($ property ->getDeclaringClass ()->name === $ className ) {
61
61
foreach ($ this ->reader ->getPropertyAnnotations ($ property ) as $ constraint ) {
62
62
if ($ constraint instanceof Constraint) {
63
63
$ metadata ->addPropertyConstraint ($ property ->name , $ constraint );
@@ -69,7 +69,7 @@ public function loadClassMetadata(ClassMetadata $metadata)
69
69
}
70
70
71
71
foreach ($ reflClass ->getMethods () as $ method ) {
72
- if ($ method ->getDeclaringClass ()->name == $ className ) {
72
+ if ($ method ->getDeclaringClass ()->name === $ className ) {
73
73
foreach ($ this ->reader ->getMethodAnnotations ($ method ) as $ constraint ) {
74
74
if ($ constraint instanceof Constraint) {
75
75
if (preg_match ('/^(get|is)(.+)$/i ' , $ method ->name , $ matches )) {
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ protected function parseNodes(array $nodes)
85
85
$ values = array ();
86
86
87
87
foreach ($ nodes as $ name => $ childNodes ) {
88
- if (is_numeric ($ name ) && is_array ($ childNodes ) && count ($ childNodes ) == 1 ) {
88
+ if (is_numeric ($ name ) && is_array ($ childNodes ) && 1 === count ($ childNodes )) {
89
89
$ options = current ($ childNodes );
90
90
91
91
if (is_array ($ options )) {
You can’t perform that action at this time.
0 commit comments