mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-21 20:16:17 +00:00
Adding word boundaries to the request patterns. Also adding lookaheads
to prevent methods from being changed.
This commit is contained in:
parent
6e1f45abb3
commit
c6e1c3d562
1 changed files with 6 additions and 6 deletions
|
@ -175,32 +175,32 @@ class UpgradeShell extends Shell {
|
|||
$patterns = array(
|
||||
array(
|
||||
'$this->data -> $this->request->data',
|
||||
'/(\$this->data)/',
|
||||
'/(\$this->data\b(?!\())/',
|
||||
'$this->request->data'
|
||||
),
|
||||
array(
|
||||
'$this->params -> $this->request->params',
|
||||
'/(\$this->params)/',
|
||||
'/(\$this->params\b(?!\())/',
|
||||
'$this->request->params'
|
||||
),
|
||||
array(
|
||||
'$this->webroot -> $this->request->webroot',
|
||||
'/(\$this->webroot)/',
|
||||
'/(\$this->webroot\b(?!\())/',
|
||||
'$this->request->webroot'
|
||||
),
|
||||
array(
|
||||
'$this->base -> $this->request->base',
|
||||
'/(\$this->base)/',
|
||||
'/(\$this->base\b(?!\())/',
|
||||
'$this->request->base'
|
||||
),
|
||||
array(
|
||||
'$this->here -> $this->request->here',
|
||||
'/(\$this->here)/',
|
||||
'/(\$this->here\b(?!\())/',
|
||||
'$this->request->here'
|
||||
),
|
||||
array(
|
||||
'$this->action -> $this->request->action',
|
||||
'/(\$this->action)/',
|
||||
'/(\$this->action\b(?!\())/',
|
||||
'$this->request->action'
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue