mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Typo PHPDoc (#18939)
Typo PHPDoc Co-authored-by: toir427 <t.tuychiev@safenetpay.com> Co-authored-by: Bizley <pawel@positive.codes>
This commit is contained in:
@ -14,7 +14,7 @@ use yii\helpers\FileHelper;
|
||||
use yii\helpers\Json;
|
||||
|
||||
/**
|
||||
* PhpDocController is there to help maintaining PHPDoc annotation in class files.
|
||||
* PhpDocController is there to help to maintain PHPDoc annotation in class files.
|
||||
*
|
||||
* @author Carsten Brandt <mail@cebe.cc>
|
||||
* @author Alexander Makarov <sam@rmcreative.ru>
|
||||
@ -871,11 +871,11 @@ class PhpDocController extends Controller
|
||||
*/
|
||||
protected function isBaseObject($className, \ReflectionClass $ref)
|
||||
{
|
||||
$isDepreceatedObject = false;
|
||||
$isDeprecatedObject = false;
|
||||
if (PHP_VERSION_ID <= 70100) {
|
||||
$isDepreceatedObject = $ref->isSubclassOf('yii\base\Object') || $className === 'yii\base\Object';
|
||||
$isDeprecatedObject = $ref->isSubclassOf('yii\base\Object') || $className === 'yii\base\Object';
|
||||
}
|
||||
return !$isDepreceatedObject && !$ref->isSubclassOf('yii\base\BaseObject') && $className !== 'yii\base\BaseObject';
|
||||
return !$isDeprecatedObject && !$ref->isSubclassOf('yii\base\BaseObject') && $className !== 'yii\base\BaseObject';
|
||||
}
|
||||
|
||||
private function shouldSkipClass($className)
|
||||
|
Reference in New Issue
Block a user