function RequireConstructorPropertyPromotionSniff::getPropertyPointers
*
Return value
list<int>
1 call to RequireConstructorPropertyPromotionSniff::getPropertyPointers()
- RequireConstructorPropertyPromotionSniff::process in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Classes/ RequireConstructorPropertyPromotionSniff.php - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
File
-
vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Classes/ RequireConstructorPropertyPromotionSniff.php, line 299
Class
Namespace
SlevomatCodingStandard\Sniffs\ClassesCode
private function getPropertyPointers(File $phpcsFile, int $classPointer) : array {
$tokens = $phpcsFile->getTokens();
return array_filter(TokenHelper::findNextAll($phpcsFile, T_VARIABLE, $tokens[$classPointer]['scope_opener'] + 1, $tokens[$classPointer]['scope_closer']), static function (int $variablePointer) use ($phpcsFile) : bool {
return PropertyHelper::isProperty($phpcsFile, $variablePointer);
});
}