rector/create-rector.yaml.dist

32 lines
618 B
Plaintext

# run "bin/rector create" to create a new Rector + tests from this config
package: "Celebrity"
name: "SplitToExplodeRector"
node_types:
- "Assign" # put main node first
description: "Removes unneeded $a = $a assigns"
code_before: |
<?php
class SomeClass
{
public function run()
{
$a = $a;
}
}
code_after: |
<?php
class SomeClass
{
public function run()
{
}
}
source: # e.g. link to RFC or headline in upgrade guide, 1 or more in the list
- ""
set: "" # e.g. symfony30.yaml, target config to append this rector to