Find a Rector rule

Find the best Rector rule to solve your problem. Searching through 1005 rules.

Found 1 rule. That's the one: Clear

symfony/property-access 1 match

Changes first argument of PropertyAccessor::__construct() to flags from boolean

 use Symfony\Component\PropertyAccess\PropertyAccessor;

 class SomeClass
 {
     public function run()
     {
-        $propertyAccessor = new PropertyAccessor(true);
+        $propertyAccessor = new PropertyAccessor(PropertyAccessor::MAGIC_CALL | PropertyAccessor::MAGIC_GET | PropertyAccessor::MAGIC_SET);
     }
 }