Skip to content

Commit 6e97afb

Browse files
phansysfranmomu
authored andcommitted
Apply "no_homoglyph_names" CS rule
1 parent 52eb394 commit 6e97afb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
'is_null' => false,
1919
'list_syntax' => ['syntax' => 'short'],
2020
'modernize_types_casting' => true,
21+
'no_homoglyph_names' => true,
2122
'no_useless_else' => true,
2223
'ordered_imports' => ['sort_algorithm' => 'alpha'],
2324
'phpdoc_summary' => false,

src/Loggable/Mapping/Driver/Annotation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ protected function isClassAnnotationInValid(ClassMetadata $meta, array &$config)
118118
*/
119119
private function inspectEmbeddedForVersioned($field, array &$config, \Doctrine\ORM\Mapping\ClassMetadata $meta)
120120
{
121-
$сlass = new \ReflectionClass($meta->embeddedClasses[$field]['class']);
121+
$class = new \ReflectionClass($meta->embeddedClasses[$field]['class']);
122122

123123
// property annotations
124-
foreach ($сlass->getProperties() as $property) {
124+
foreach ($class->getProperties() as $property) {
125125
// versioned property
126126
if ($this->reader->getPropertyAnnotation($property, self::VERSIONED)) {
127127
$embeddedField = $field.'.'.$property->getName();

0 commit comments

Comments
 (0)