rector icon indicating copy to clipboard operation
rector copied to clipboard

Alternate file extensions

Open ahardylaniertech opened this issue 5 years ago • 2 comments

I am working to convert an old application that utilized alternate extensions (not file.php). I'm working to edit rector to edit those files to convert from phpexcel to phpspreadsheet.

In vendor/bin/rector I changed line 14 to the extension I needed. Are there other files that would need to be altered?

ahardylaniertech avatar Jun 02 '21 12:06 ahardylaniertech

There should be an option for it.

$parameters->set(Option::FILE_EXTENSIONS, ['inc', 'php']);

Set this option in your rector configuration file.

sabbelasichon avatar Jun 02 '21 12:06 sabbelasichon

@ahardylaniertech I don´t think you need other files to change regarding the suffix.

sabbelasichon avatar Jun 02 '21 15:06 sabbelasichon