mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 15:39:53 +00:00
add exception for Dbo classes
This commit is contained in:
parent
07ffe2fcd8
commit
ade85c1cd0
1 changed files with 8 additions and 4 deletions
|
@ -380,12 +380,16 @@ class UpgradeShell extends Shell {
|
|||
|
||||
$class = $match[1];
|
||||
|
||||
if (substr($class, 0, 3) === 'Dbo') {
|
||||
$type = 'Dbo';
|
||||
} else {
|
||||
preg_match('@([A-Z][^A-Z]*)$@', $class, $match);
|
||||
if ($match) {
|
||||
$type = $match[1];
|
||||
} else {
|
||||
$type = 'unknown';
|
||||
}
|
||||
}
|
||||
|
||||
preg_match('@^.*[\\\/]plugins[\\\/](.*?)[\\\/]@', $file, $match);
|
||||
$base = $cwd . DS;
|
||||
|
|
Loading…
Add table
Reference in a new issue