Update src/ folder

Using any editor or tool to replace using regex, now it's time to update classes and traits inside src folder:

  • (function initialize\(\))(\n) with $1: void\n
  • (function getOptionParser\(\))(\n) with $1: \\Cake\\Console\\ConsoleOptionParser\n
  • (function initialize\(.*\))(\n) with $1: void\n
  • ((function buildRules\(RulesChecker \$rules\))\n) with $1: RulesChecker\n
  • (function validation[a-zA-Z0-9]+\(Validator \$validator\))\n with $1: Validator\n
  • (beforeRender)\(([a-zA-Z\\]+) (\$[a-zA-Z]+)\) with $1\(\\Cake\\Event\\EventInterface $3\)
  • (beforeFilter)\(([a-zA-Z\\]+) (\$[a-zA-Z]+)\) with $1\(\\Cake\\Event\\EventInterface $3\)
  • (afterFilter)\(([a-zA-Z\\]+) (\$[a-zA-Z]+)\) with $1\(\\Cake\\Event\\EventInterface $3\)
  • (beforeRedirect)\(([a-zA-Z\\]+) (\$[a-zA-Z]+)\) with $1\(\\Cake\\Event\\EventInterface $3\)
  • $this->set('_serialize', $this->viewBuilder()->setOption('serialize',
  • ->newEntity() with ->newEmptyEntity()
  • \Cake\Network\Response with \Cake\Http\Response
  • $this->Paginator->counter([ with $this->Paginator->counter('pages', [

Go to the next step (Run PHPStan)

NEED A CUSTOM SOLUTION?
GET IN TOUCH:

We Bake with CakePHP