Skip to content

Commit 9db236e

Browse files
committed
[PropertyAccess] comply with Symfony standards
1 parent a9a8d6b commit 9db236e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Symfony/Component/PropertyAccess/PropertyAccessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ private function getWriteAccessInfo($class, $property, $value)
706706
$access[self::ACCESS_HAS_PROPERTY] = $reflClass->hasProperty($property);
707707
$camelized = $this->camelize($property);
708708
$singulars = (array) Inflector::singularize($camelized);
709-
$plural = empty(array_intersect([$camelized], $singulars));
709+
$plural = empty(array_intersect(array($camelized), $singulars));
710710

711711
if ($plural && \is_array($value) || $value instanceof \Traversable) {
712712
$methods = $this->findAdderAndRemover($reflClass, $singulars);

src/Symfony/Component/PropertyAccess/Tests/Fixtures/TestAdderVersusSetter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\PropertyAccess\Tests\Fixtures;
1313

14-
1514
class TestAdderVersusSetter
1615
{
1716
/** @var array */

0 commit comments

Comments
 (0)