mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +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,11 +380,15 @@ class UpgradeShell extends Shell {
|
|||
|
||||
$class = $match[1];
|
||||
|
||||
preg_match('@([A-Z][^A-Z]*)$@', $class, $match);
|
||||
if ($match) {
|
||||
$type = $match[1];
|
||||
if (substr($class, 0, 3) === 'Dbo') {
|
||||
$type = 'Dbo';
|
||||
} else {
|
||||
$type = 'unknown';
|
||||
preg_match('@([A-Z][^A-Z]*)$@', $class, $match);
|
||||
if ($match) {
|
||||
$type = $match[1];
|
||||
} else {
|
||||
$type = 'unknown';
|
||||
}
|
||||
}
|
||||
|
||||
preg_match('@^.*[\\\/]plugins[\\\/](.*?)[\\\/]@', $file, $match);
|
||||
|
|
Loading…
Add table
Reference in a new issue