PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
tests
/
Core
/
Tokenizers
/
PHP
<?php abstract class Nullable { /* testNullableReadonlyOnly */ readonly ?int $prop; /* testNullablePrivateSet */ private(set) ?int $prop2; /* testNullablePublicProtectedSet */ public protected(set) ?int $prop3; /* testNullableFinalOnly */ final ?bool $prop4; /* testNullableAbstractOnly */ abstract ?string $prop5 { get; } } $closure = function ( /* testClosureParamTypeNullableInt */ ?Int $a, /* testClosureParamTypeNullableCallable */ ? Callable $b, /* testClosureParamTypeNullableStringWithAttributeAndSlashComment */ #[AttributeForParam] // This must be a slash or hash comment and the next line must **NOT** have any indentation for the PHP 8.5 deprecation notice (issue PHPCSStandards/PHP_CodeSniffer#1216) to occur. ?string $c /* testClosureReturnTypeNullableInt */ ) :?INT{}; /* testFunctionReturnTypeNullableCallable */ function testCallableReturn() : ? callable {} class InlineThen { /* testInlineThenInPropertyDefaultValue */ public int $prop = self::SOMECONT ? PHP_CONST ? OTHER_CONST; } /* testInlineThenWithArrayDeclaration */ $ternary = true ? array() : null; /* testInlineThenWithUnqualifiedNameAndNothingElse */ $ternary = true ? CONSTANT_NAME : null; /* testInlineThenWithUnqualifiedNameAndParens */ $ternary = true ? callMe() : null; /* testInlineThenWithUnqualifiedNameAndDoubleColon */ $ternary = true ? ClassName::callMe() : null; /* testInlineThenWithFullyQualifiedNameAndNothingElse */ $ternary = true ? \CONSTANT_NAME : null; /* testInlineThenWithFullyQualifiedNameAndParens */ $ternary = true ? \Fully\callMe() : null; /* testInlineThenWithFullyQualifiedNameAndDoubleColon */ $ternary = true ? \Fully\ClassName::callMe() : null; /* testInlineThenWithPartiallyQualifiedNameAndNothingElse */ $ternary = true ? Partially\CONSTANT_NAME : null; /* testInlineThenWithPartiallyQualifiedNameAndParens */ $ternary = true ? Partially\callMe() : null; /* testInlineThenWithPartiallyQualifiedNameAndDoubleColon */ $ternary = true ? Partially\ClassName::callMe() : null; /* testInlineThenWithNamespaceRelativeNameAndNothingElse */ $ternary = true ? namespace\CONSTANT_NAME : null; /* testInlineThenWithNamespaceRelativeNameAndParens */ $ternary = true ? namespace\callMe() : null; /* testInlineThenWithNamespaceRelativeNameAndDoubleColon */ $ternary = true ? namespace\ClassName::callMe() : null;
[+]
..
[-] AnonClassParenthesisOwnerTest.inc
[edit]
[-] AnonClassParenthesisOwnerTest.php
[edit]
[-] ArrayKeywordTest.inc
[edit]
[-] ArrayKeywordTest.php
[edit]
[-] AttributesParseError1Test.inc
[edit]
[-] AttributesParseError1Test.php
[edit]
[-] AttributesParseError2Test.inc
[edit]
[-] AttributesParseError2Test.php
[edit]
[-] AttributesParseError3Test.inc
[edit]
[-] AttributesParseError3Test.php
[edit]
[-] AttributesParseError4Test.inc
[edit]
[-] AttributesParseError4Test.php
[edit]
[-] AttributesTest.inc
[edit]
[-] AttributesTest.php
[edit]
[-] BackfillAsymmetricVisibilityTest.inc
[edit]
[-] BackfillAsymmetricVisibilityTest.php
[edit]
[-] BackfillEnumTest.inc
[edit]
[-] BackfillEnumTest.php
[edit]
[-] BackfillExplicitOctalNotationTest.inc
[edit]
[-] BackfillExplicitOctalNotationTest.php
[edit]
[-] BackfillFnTokenParseErrorTest.inc
[edit]
[-] BackfillFnTokenParseErrorTest.php
[edit]
[-] BackfillFnTokenTest.inc
[edit]
[-] BackfillFnTokenTest.php
[edit]
[-] BackfillMatchTokenTest.inc
[edit]
[-] BackfillMatchTokenTest.php
[edit]
[-] BackfillNumericSeparatorTest.inc
[edit]
[-] BackfillNumericSeparatorTest.php
[edit]
[-] BackfillReadonlyTest.inc
[edit]
[-] BackfillReadonlyTest.php
[edit]
[-] BitwiseOrTest.inc
[edit]
[-] BitwiseOrTest.php
[edit]
[-] ContextSensitiveKeywordsTest.inc
[edit]
[-] ContextSensitiveKeywordsTest.php
[edit]
[-] DNFTypesParseError1Test.inc
[edit]
[-] DNFTypesParseError1Test.php
[edit]
[-] DNFTypesParseError2Test.inc
[edit]
[-] DNFTypesParseError2Test.php
[edit]
[-] DNFTypesTest.inc
[edit]
[-] DNFTypesTest.php
[edit]
[-] DefaultKeywordTest.inc
[edit]
[-] DefaultKeywordTest.php
[edit]
[-] DoubleArrowTest.inc
[edit]
[-] DoubleArrowTest.php
[edit]
[-] DoubleQuotedStringTest.inc
[edit]
[-] DoubleQuotedStringTest.php
[edit]
[-] EnumCaseTest.inc
[edit]
[-] EnumCaseTest.php
[edit]
[-] ExitKeywordTest.inc
[edit]
[-] ExitKeywordTest.php
[edit]
[-] FinallyTest.inc
[edit]
[-] FinallyTest.php
[edit]
[-] GotoLabelTest.inc
[edit]
[-] GotoLabelTest.php
[edit]
[-] HeredocNowdocTest.inc
[edit]
[-] HeredocNowdocTest.php
[edit]
[-] HeredocParseErrorTest.inc
[edit]
[-] HeredocParseErrorTest.php
[edit]
[-] HeredocStringTest.inc
[edit]
[-] HeredocStringTest.php
[edit]
[-] NamedFunctionCallArgumentsTest.inc
[edit]
[-] NamedFunctionCallArgumentsTest.php
[edit]
[-] NullableVsInlineThenParseErrorTest.inc
[edit]
[-] NullableVsInlineThenParseErrorTest.php
[edit]
[-] NullableVsInlineThenTest.inc
[edit]
[-] NullableVsInlineThenTest.php
[edit]
[-] NullsafeObjectOperatorTest.inc
[edit]
[-] NullsafeObjectOperatorTest.php
[edit]
[-] OtherContextSensitiveKeywordsTest.inc
[edit]
[-] OtherContextSensitiveKeywordsTest.php
[edit]
[-] PHPOpenTagEOF1Test.inc
[edit]
[-] PHPOpenTagEOF1Test.php
[edit]
[-] PHPOpenTagEOF2Test.inc
[edit]
[-] PHPOpenTagEOF2Test.php
[edit]
[-] PHPOpenTagEOF3Test.inc
[edit]
[-] PHPOpenTagEOF3Test.php
[edit]
[-] ResolveSimpleTokenTest.inc
[edit]
[-] ResolveSimpleTokenTest.php
[edit]
[-] ShortArrayTest.inc
[edit]
[-] ShortArrayTest.php
[edit]
[-] StableCommentWhitespaceTest.inc
[edit]
[-] StableCommentWhitespaceTest.php
[edit]
[-] StableCommentWhitespaceWinTest.inc
[edit]
[-] StableCommentWhitespaceWinTest.php
[edit]
[-] TypeIntersectionTest.inc
[edit]
[-] TypeIntersectionTest.php
[edit]
[-] TypedConstantsTest.inc
[edit]
[-] TypedConstantsTest.php
[edit]
[-] UndoNamespacedNameSingleTokenTest.inc
[edit]
[-] UndoNamespacedNameSingleTokenTest.php
[edit]
[-] YieldTest.inc
[edit]
[-] YieldTest.php
[edit]