function ForbiddenPublicPropertySniff::getPropertyScopeModifier
* @phpcsSuppress SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint.DisallowedMixedTypeHint *
Return value
array{code: int|string}
1 call to ForbiddenPublicPropertySniff::getPropertyScopeModifier()
- ForbiddenPublicPropertySniff::process in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Classes/ ForbiddenPublicPropertySniff.php - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
File
-
vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Classes/ ForbiddenPublicPropertySniff.php, line 70
Class
Namespace
SlevomatCodingStandard\Sniffs\ClassesCode
private function getPropertyScopeModifier(File $file, int $position) : array {
$scopeModifierPosition = TokenHelper::findPrevious($file, array_merge([
T_VAR,
], Tokens::$scopeModifiers), $position - 1);
return $file->getTokens()[$scopeModifierPosition];
}