fix Exception\Throwable order

This commit is contained in:
Игорь Тарасов
2021-06-13 18:07:43 +05:00
parent bbb756a876
commit 330166e703
4 changed files with 5 additions and 5 deletions

View File

@ -335,9 +335,9 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
{
try {
return $this->__get($name) !== null;
} catch (\Throwable $t) {
} catch (\Exception $t) {
return false;
} catch (\Exception $e) {
} catch (\Throwable $e) {
return false;
}
}