Skip to content

RectorConfig

github-actions edited this page Apr 9, 2026 · 1 revision

Provides the default Rector configuration.

Consumers can use this as a starting point and extend it:

return \FastForward\DevTools\Config\RectorConfig::configure( static function (\Rector\Config\RectorConfig $rectorConfig): void { $rectorConfig->rules([ // custom rules ]); } );


  • Full name: \FastForward\DevTools\Config\RectorConfig
  • This class is marked as final and can't be subclassed
  • This class is a Final class

See Also:

Methods

configure

Creates the default Rector configuration.

public static configure(callable|null $customize = null): callable
  • This method is static. Parameters:
Parameter Type Description
$customize callable|null optional callback to customize the configuration

Return Value:

the configuration callback


Clone this wiki locally