Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7074073

Browse files
committed
Fix CR issues
1 parent 240b2d7 commit 7074073

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/PropertyInfo/Extractor/ReflectionExtractor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,10 @@ private function getPropertyName(string $methodName, array $reflectionProperties
688688
*/
689689
private function findAdderAndRemover(\ReflectionClass $reflClass, array $singulars): array
690690
{
691+
if (2 !== \count($this->arrayMutatorPrefixes)) {
692+
return [null, null, []];
693+
}
694+
691695
[$addPrefix, $removePrefix] = $this->arrayMutatorPrefixes;
692696
$errors = [];
693697

0 commit comments

Comments
 (0)