This is an automated email from the ASF dual-hosted git repository. tmysik pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git
commit a97c3587f2ed1a0b9173fb3b0da3128e2fa078f5 Merge: 8fbcf30828 4e0486e4ad Author: Tomáš Myšík <tomas.my...@gmail.com> AuthorDate: Tue Jan 17 13:07:01 2023 +0100 Merge pull request #5300 from apache/php82-support PHP 8.2 Support php/php.api.phpmodule/manifest.mf | 2 +- .../org/netbeans/modules/php/api/PhpVersion.java | 21 +- php/php.editor/nbproject/project.properties | 2 +- php/php.editor/nbproject/project.xml | 2 +- .../org/netbeans/modules/php/editor/CodeUtils.java | 13 +- .../modules/php/editor/api/PhpModifiers.java | 4 + .../php/editor/api/elements/AliasedClass.java | 5 + .../php/editor/api/elements/ClassElement.java | 1 + .../editor/completion/CompletionContextFinder.java | 9 +- .../modules/php/editor/completion/DocRenderer.java | 5 + .../php/editor/completion/PHPCodeCompletion.java | 32 +- .../modules/php/editor/csl/SemanticAnalysis.java | 5 +- .../php/editor/elements/ClassElementImpl.java | 5 + .../php/editor/elements/IndexQueryImpl.java | 45 +- .../modules/php/editor/indent/FormatVisitor.java | 4 +- .../modules/php/editor/index/PHPIndexer.java | 2 +- .../php/editor/model/impl/ClassScopeImpl.java | 25 +- .../php/editor/model/impl/ModelVisitor.java | 4 +- .../php/editor/model/impl/OccurenceBuilder.java | 11 + .../php/editor/model/impl/TraitScopeImpl.java | 26 +- .../modules/php/editor/model/impl/Type.java | 28 +- .../php/editor/model/impl/VariousUtils.java | 35 +- .../editor/model/nodes/ClassDeclarationInfo.java | 29 +- .../modules/php/editor/parser/ASTPHP5Parser.java | 6227 +++++++++-------- .../modules/php/editor/parser/ASTPHP5Symbols.java | 2 +- .../php/editor/parser/EncodedActionTable1.java | 7142 ++++++++++---------- .../php/editor/parser/EncodedActionTable10.java | 6068 ++++++++--------- .../php/editor/parser/EncodedActionTable11.java | 6212 ++++++++--------- .../php/editor/parser/EncodedActionTable12.java | 6302 ++++++++--------- .../php/editor/parser/EncodedActionTable13.java | 5964 ++++++++-------- .../php/editor/parser/EncodedActionTable14.java | 6024 ++++++++--------- .../php/editor/parser/EncodedActionTable15.java | 6930 +++++++++---------- .../php/editor/parser/EncodedActionTable16.java | 6546 +++++++++--------- .../php/editor/parser/EncodedActionTable17.java | 5270 +++++++-------- .../php/editor/parser/EncodedActionTable18.java | 5612 +++++++-------- .../php/editor/parser/EncodedActionTable19.java | 1916 +++++- .../php/editor/parser/EncodedActionTable2.java | 6644 +++++++++--------- .../php/editor/parser/EncodedActionTable3.java | 6704 +++++++++--------- .../php/editor/parser/EncodedActionTable4.java | 5508 +++++++-------- .../php/editor/parser/EncodedActionTable5.java | 5552 +++++++-------- .../php/editor/parser/EncodedActionTable6.java | 5522 +++++++-------- .../php/editor/parser/EncodedActionTable7.java | 5926 ++++++++-------- .../php/editor/parser/EncodedActionTable8.java | 5730 ++++++++-------- .../php/editor/parser/EncodedActionTable9.java | 5796 ++++++++-------- .../editor/parser/astnodes/ClassDeclaration.java | 67 +- .../astnodes/ConstantVariable.java} | 46 +- .../php/editor/parser/astnodes/UnionType.java | 7 +- .../php/editor/parser/astnodes/Variable.java | 11 +- .../php/editor/parser/astnodes/Visitor.java | 2 + .../astnodes/visitors/DefaultTreePathVisitor.java | 8 + .../parser/astnodes/visitors/DefaultVisitor.java | 6 + .../php/editor/resources/code-templates.xml | 11 +- .../modules/php/editor/resources/layer.xml | 1 + .../verification/IncorrectEnumHintError.java | 12 + .../verification/ModifiersCheckHintError.java | 232 +- .../editor/verification/PHP81UnhandledError.java | 13 + .../editor/verification/PHP82UnhandledError.java | 173 + .../verification/UnusableTypesHintError.java | 145 +- .../structure/php82/constantsInTraits.pass | 30 + .../structure/php82/constantsInTraits.pass | 16 + .../structure/standAloneTrueType.pass | 8 + .../lexer/php82/constantsInTraits_01.pass | 210 + .../lexer/php82/readonlyClasses_01.pass | 59 + .../parser/php81/newInInitializers_02.pass | 812 +++ .../php81/readonlyPropertiesWithStaticError.pass | 1 + .../parser/php82/constantsInTraits_01.pass | 616 ++ .../parser/php82/dnfTypes_01.pass | 973 +++ .../fetchPropertiesInConstExpressions_01.pass | 2211 ++++++ .../parser/php82/readonlyClass_01.pass | 420 ++ .../parser/php82/readonlyEnumError_01.pass | 42 + .../parser/php82/readonlyInterfaceError_01.pass | 38 + .../parser/php82/readonlyTraitError_01.pass | 38 + .../byReferences.php.testByReferences01.completion | 1 + .../byReferences.php.testByReferences03.completion | 1 + .../byReferences.php.testByReferences05.completion | 1 + .../byReferences.php.testByReferences07.completion | 1 + .../byReferences.php.testByReferences08.completion | 1 + .../byReferences.php.testByReferences10.completion | 1 + .../byReferences.php.testByReferences12.completion | 1 + .../byReferences.php.testByReferences14.completion | 1 + .../byReferences.php.testByReferences16.completion | 1 + .../byReferences.php.testByReferences18.completion | 1 + .../byReferences.php.testByReferences20.completion | 1 + .../byReferences.php.testByReferences22.completion | 1 + .../byReferences.php.testByReferences24.completion | 1 + .../byReferences.php.testByReferences26.completion | 1 + .../byReferences.php.testByReferences28.completion | 1 + .../byReferences.php.testByReferences30.completion | 1 + .../byReferences.php.testByReferences32.completion | 1 + .../byReferences.php.testByReferences34.completion | 1 + .../byReferences.php.testByReferences36.completion | 1 + ...amdecltypes.php.testParamDeclTypes11.completion | 1 + ...amdecltypes.php.testParamDeclTypes14.completion | 1 + ...ramdecltypes.php.testParamDeclTypes5.completion | 1 + ...ramdecltypes.php.testParamDeclTypes8.completion | 1 + ...TypeHint.php.testCallableTypeHint_01.completion | 1 + ...TypeHint.php.testCallableTypeHint_03.completion | 1 + .../returnTypes.php.testReturnType01.completion | 1 + .../returnTypes.php.testReturnType03.completion | 1 + .../returnTypes.php.testReturnType05.completion | 1 + .../returnTypes.php.testReturnType07.completion | 1 + .../returnTypes.php.testReturnType12.completion | 1 + .../returnTypes.php.testReturnType13.completion | 1 + .../returnTypes.php.testReturnType14.completion | 1 + ...Typing01.php.testReturnTypesTyping01.completion | 1 + ...Typing02.php.testReturnTypesTyping02.completion | 1 + ...Typing03.php.testReturnTypesTyping03.completion | 1 + ...yping04.php.testReturnTypesTyping04a.completion | 1 + ...yping04.php.testReturnTypesTyping04b.completion | 1 + ...Typing05.php.testReturnTypesTyping05.completion | 1 + ...Typing06.php.testReturnTypesTyping06.completion | 1 + ...Typing07.php.testReturnTypesTyping07.completion | 1 + ...yping08.php.testReturnTypesTyping08a.completion | 1 + ...yping08.php.testReturnTypesTyping08b.completion | 1 + ...Typing09.php.testReturnTypesTyping09.completion | 1 + ...Typing10.php.testReturnTypesTyping10.completion | 1 + ...Typing11.php.testReturnTypesTyping11.completion | 1 + ...yping12.php.testReturnTypesTyping12a.completion | 1 + ...yping12.php.testReturnTypesTyping12b.completion | 1 + ...alarTypeHints.php.testBoolTypeHint01.completion | 1 + ...alarTypeHints.php.testBoolTypeHint03.completion | 1 + ...larTypeHints.php.testFloatTypeHint01.completion | 1 + ...larTypeHints.php.testFloatTypeHint03.completion | 1 + ...calarTypeHints.php.testIntTypeHint01.completion | 1 + ...calarTypeHints.php.testIntTypeHint03.completion | 1 + ...arTypeHints.php.testStringTypeHint01.completion | 1 + ...arTypeHints.php.testStringTypeHint03.completion | 1 + ...hp.testNullableTypes_ParameterType01.completion | 2 + ...hp.testNullableTypes_ParameterType03.completion | 2 + ...hp.testNullableTypes_ParameterType07.completion | 2 + ...hp.testNullableTypes_ParameterType09.completion | 2 + ...hp.testNullableTypes_ParameterType11.completion | 2 + ...hp.testNullableTypes_ParameterType13.completion | 2 + ...s.php.testNullableTypes_ReturnType01.completion | 2 + ...s.php.testNullableTypes_ReturnType03.completion | 2 + ...s.php.testNullableTypes_ReturnType05.completion | 2 + ...s.php.testNullableTypes_ReturnType09.completion | 2 + ...s.php.testNullableTypes_ReturnType11.completion | 2 + ...s.php.testNullableTypes_ReturnType13.completion | 2 + ...s.php.testNullableTypes_ReturnType15.completion | 2 + ...tNullableTypes_TypingParameterType01.completion | 2 + ...tNullableTypes_TypingParameterType02.completion | 2 + ...tNullableTypes_TypingParameterType03.completion | 2 + ...tNullableTypes_TypingParameterType04.completion | 2 + ...tNullableTypes_TypingParameterType05.completion | 2 + ...tNullableTypes_TypingParameterType06.completion | 2 + ...tNullableTypes_TypingParameterType07.completion | 2 + ...tNullableTypes_TypingParameterType08.completion | 2 + ...tNullableTypes_TypingParameterType09.completion | 2 + ...tNullableTypes_TypingParameterType10.completion | 2 + ...tNullableTypes_TypingParameterType11.completion | 2 + ...tNullableTypes_TypingParameterType12.completion | 2 + ...testNullableTypes_TypingReturnType01.completion | 2 + ...testNullableTypes_TypingReturnType02.completion | 2 + ...testNullableTypes_TypingReturnType03.completion | 2 + ...testNullableTypes_TypingReturnType04.completion | 2 + ...testNullableTypes_TypingReturnType05.completion | 2 + ...testNullableTypes_TypingReturnType06.completion | 2 + ...testNullableTypes_TypingReturnType07.completion | 2 + ...testNullableTypes_TypingReturnType08.completion | 2 + ...testNullableTypes_TypingReturnType09.completion | 2 + ...testNullableTypes_TypingReturnType10.completion | 2 + ...testNullableTypes_TypingReturnType11.completion | 2 + ...testNullableTypes_TypingReturnType12.completion | 2 + ...NullableTypesInPHPDoc_NullableType04.completion | 2 + ...NullableTypesInPHPDoc_NullableType06.completion | 2 + ...nType.php.testVoidReturnType_Class01.completion | 1 + ...pe.php.testVoidReturnType_Function01.completion | 1 + ...e.php.testVoidReturnType_Interface01.completion | 1 + ...p.testObjectTypeHint_ParameterType01.completion | 1 + ....php.testObjectTypeHint_ReturnType02.completion | 1 + ...Functions.php.testArrowFunctions_03a.completion | 1 + ...Functions.php.testArrowFunctions_04a.completion | 1 + ...Functions.php.testArrowFunctions_05a.completion | 1 + ...Functions.php.testArrowFunctions_06a.completion | 2 + ...Functions.php.testArrowFunctions_17b.completion | 1 + ...Functions.php.testArrowFunctions_23a.completion | 1 + ...Functions.php.testArrowFunctions_23b.completion | 2 + ...ss.php.testTypedProperties20Class_06.completion | 1 + ...ss.php.testTypedProperties20Class_08.completion | 1 + ...ss.php.testTypedProperties20Class_10.completion | 2 + ...ss.php.testTypedProperties20Class_16.completion | 1 + ...ss.php.testTypedProperties20Class_17.completion | 1 + ...it.php.testTypedProperties20Trait_06.completion | 1 + ...it.php.testTypedProperties20Trait_08.completion | 1 + ...it.php.testTypedProperties20Trait_09.completion | 2 + ...it.php.testTypedProperties20Trait_11.completion | 2 + ...it.php.testTypedProperties20Trait_17.completion | 1 + ...it.php.testTypedProperties20Trait_18.completion | 1 + ....testConstructorPropertyPromotion01a.completion | 1 + ....testConstructorPropertyPromotion01b.completion | 1 + ....testConstructorPropertyPromotion03a.completion | 1 + ....testConstructorPropertyPromotion03b.completion | 1 + ....testConstructorPropertyPromotion04a.completion | 2 + ....testConstructorPropertyPromotion04b.completion | 2 + ....testConstructorPropertyPromotion05a.completion | 1 + ....testConstructorPropertyPromotion05b.completion | 1 + ....testConstructorPropertyPromotion06a.completion | 1 + ....testConstructorPropertyPromotion06b.completion | 1 + ....testConstructorPropertyPromotion07a.completion | 1 + ....testConstructorPropertyPromotion07b.completion | 1 + .../mixedType.php.testMixedType_01.completion | 1 + .../mixedType.php.testMixedType_03.completion | 1 + .../mixedType.php.testMixedType_05.completion | 1 + .../mixedType.php.testMixedType_07.completion | 1 + .../mixedType.php.testMixedType_08.completion | 1 + .../mixedType.php.testMixedType_09.completion | 1 + ...sFields01.php.testUnionTypesFields01.completion | 1 + ...sFields03.php.testUnionTypesFields03.completion | 1 + ...sFields05.php.testUnionTypesFields05.completion | 1 + ...sFields06.php.testUnionTypesFields06.completion | 1 + ...estUnionTypesFunctionParameterType01.completion | 1 + ...estUnionTypesFunctionParameterType03.completion | 1 + ...estUnionTypesFunctionParameterType04.completion | 1 + ...estUnionTypesFunctionParameterType05.completion | 1 + ...estUnionTypesFunctionParameterType07.completion | 1 + ...p.testUnionTypesFunctionReturnType01.completion | 1 + ...p.testUnionTypesFunctionReturnType04.completion | 1 + ...tions.php.testUnionTypesFunctions_02.completion | 1 + ...tions.php.testUnionTypesFunctions_04.completion | 1 + ...tions.php.testUnionTypesFunctions_05.completion | 1 + ...tions.php.testUnionTypesFunctions_08.completion | 1 + ...tions.php.testUnionTypesFunctions_09.completion | 1 + ...tions.php.testUnionTypesFunctions_10.completion | 1 + ...tions.php.testUnionTypesFunctions_12.completion | 1 + ...tions.php.testUnionTypesFunctions_13.completion | 1 + ...tions.php.testUnionTypesFunctions_15.completion | 1 + ...tions.php.testUnionTypesFunctions_17.completion | 1 + ...tions.php.testUnionTypesFunctions_19.completion | 1 + ...Methods.php.testUnionTypesMethods_01.completion | 1 + ...Methods.php.testUnionTypesMethods_03.completion | 1 + ...Methods.php.testUnionTypesMethods_05.completion | 1 + ...Methods.php.testUnionTypesMethods_07.completion | 1 + ...Methods.php.testUnionTypesMethods_08.completion | 1 + ...Methods.php.testUnionTypesMethods_11.completion | 1 + ...Methods.php.testUnionTypesMethods_12.completion | 1 + ...Methods.php.testUnionTypesMethods_14.completion | 1 + ...Methods.php.testUnionTypesMethods_17.completion | 1 + ...Methods.php.testUnionTypesMethods_18.completion | 1 + ...Methods.php.testUnionTypesMethods_20.completion | 1 + ...Methods.php.testUnionTypesMethods_22.completion | 1 + .../testEnums/enums.php.testEnums_08.completion | 2 + .../testEnums/enums.php.testEnums_24.completion | 2 + .../testEnums/enums.php.testEnums_30.completion | 2 + ...FieldType.php.testEnumsFieldType_01a.completion | 1 + ...FieldType.php.testEnumsFieldType_02a.completion | 1 + ...ing01.php.testEnumsFieldTypeTyping01.completion | 1 + ...ing03.php.testEnumsFieldTypeTyping03.completion | 1 + ...sParamType.php.testEnumsParamType_01.completion | 1 + ...sParamType.php.testEnumsParamType_09.completion | 2 + ...eturnType.php.testEnumsReturnType_01.completion | 1 + ...eturnType.php.testEnumsReturnType_03.completion | 1 + ...eturnType.php.testEnumsReturnType_08.completion | 2 + ...numsTyping_06.php.testEnumsTyping_06.completion | 1 + ...hp.testEnumsUnionAndBackedMembers_02.completion | 1 + ...hp.testEnumsUnionAndBackedMembers_03.completion | 1 + ...hp.testEnumsUnionAndBackedMembers_04.completion | 1 + ...hp.testIntersectionTypesFunctions_04.completion | 1 + ...hp.testIntersectionTypesFunctions_09.completion | 1 + ...hp.testIntersectionTypesFunctions_15.completion | 1 + ....php.testIntersectionTypesMethods_01.completion | 1 + ....php.testIntersectionTypesMethods_05.completion | 1 + ....php.testIntersectionTypesMethods_07.completion | 1 + ...Type.php.testNeverReturnType_Class01.completion | 1 + ...e.php.testNeverReturnType_Function01.completion | 1 + ....php.testNeverReturnType_Interface01.completion | 1 + ...Type.php.testNeverReturnType_Trait01.completion | 1 + ...stReadonlyPromotedPropertiesTyping01.completion | 1 + ...stReadonlyPromotedPropertiesTyping03.completion | 1 + ...stReadonlyPromotedPropertiesTyping05.completion | 1 + ...stReadonlyPromotedPropertiesTyping06.completion | 1 + ...stReadonlyPromotedPropertiesTyping08.completion | 1 + ...stReadonlyPromotedPropertiesTyping10.completion | 1 + ...stReadonlyPromotedPropertiesTyping12.completion | 1 + ...3.php.testReadonlyPropertiesTyping03.completion | 1 + ...5.php.testReadonlyPropertiesTyping05.completion | 1 + ...7.php.testReadonlyPropertiesTyping07.completion | 1 + ...9.php.testReadonlyPropertiesTyping09.completion | 1 + ...0.php.testReadonlyPropertiesTyping10.completion | 2 + .../testConstantsInTraits/constantsInTraits.php | 82 + ...nTraits.php.testConstantsInTraits_01.completion | 6 + ...Traits.php.testConstantsInTraits_02a.completion | 10 + ...Traits.php.testConstantsInTraits_02b.completion | 4 + ...Traits.php.testConstantsInTraits_03a.completion | 10 + ...Traits.php.testConstantsInTraits_03b.completion | 4 + ...Traits.php.testConstantsInTraits_04a.completion | 10 + ...Traits.php.testConstantsInTraits_04b.completion | 4 + ...nTraits.php.testConstantsInTraits_05.completion | 14 + ...nTraits.php.testConstantsInTraits_06.completion | 14 + ...nTraits.php.testConstantsInTraits_07.completion | 14 + ...nTraits.php.testConstantsInTraits_08.completion | 11 + ...nTraits.php.testConstantsInTraits_09.completion | 11 + ...nTraits.php.testConstantsInTraits_10.completion | 11 + ...nTraits.php.testConstantsInTraits_11.completion | 10 + ...nTraits.php.testConstantsInTraits_12.completion | 10 + ...nTraits.php.testConstantsInTraits_13.completion | 10 + ...nTraits.php.testConstantsInTraits_14.completion | 12 + ...nTraits.php.testConstantsInTraits_15.completion | 9 + ...nTraits.php.testConstantsInTraits_16.completion | 9 + ...nTraits.php.testConstantsInTraits_17.completion | 9 + .../fetchPropertiesInConstExpressions.php | 73 + ...etchPropertiesInConstExpressions_01a.completion | 6 + ...etchPropertiesInConstExpressions_01b.completion | 5 + ...FetchPropertiesInConstExpressions_02.completion | 5 + ...FetchPropertiesInConstExpressions_03.completion | 5 + ...FetchPropertiesInConstExpressions_04.completion | 5 + ...FetchPropertiesInConstExpressions_05.completion | 5 + ...FetchPropertiesInConstExpressions_06.completion | 5 + ...FetchPropertiesInConstExpressions_07.completion | 5 + ...FetchPropertiesInConstExpressions_08.completion | 5 + ...FetchPropertiesInConstExpressions_09.completion | 5 + ...FetchPropertiesInConstExpressions_10.completion | 5 + .../testNullAndFalseType/nullAndFalseType.php} | 34 +- ...alseType.php.testNullAndFalseType_01.completion | 6 + ...alseType.php.testNullAndFalseType_02.completion | 5 + ...alseType.php.testNullAndFalseType_03.completion | 5 + ...alseType.php.testNullAndFalseType_04.completion | 6 + ...alseType.php.testNullAndFalseType_05.completion | 6 + ...alseType.php.testNullAndFalseType_06.completion | 5 + ...alseType.php.testNullAndFalseType_07.completion | 5 + ...alseType.php.testNullAndFalseType_08.completion | 5 + ...alseType.php.testNullAndFalseType_09.completion | 5 + .../php82/testReadonlyClasses/readonlyClasses.php} | 33 +- ...lyClasses.php.testReadonlyClasses_01.completion | 8 + ...lyClasses.php.testReadonlyClasses_02.completion | 8 + ...lyClasses.php.testReadonlyClasses_03.completion | 8 + ...lyClasses.php.testReadonlyClasses_04.completion | 8 + ...lyClasses.php.testReadonlyClasses_05.completion | 8 + .../readonlyClassesTyping01.php} | 23 +- ...ng01.php.testReadonlyClassesTyping01.completion | 5 + .../readonlyClassesTyping02.php} | 23 +- ...ng02.php.testReadonlyClassesTyping02.completion | 5 + .../readonlyClassesTyping03.php} | 23 +- ...ng03.php.testReadonlyClassesTyping03.completion | 5 + .../lib/php82/testTrueType/trueType.php} | 35 +- .../trueType.php.testTrueType_01.completion | 6 + .../trueType.php.testTrueType_02.completion | 6 + .../trueType.php.testTrueType_03.completion | 6 + .../trueType.php.testTrueType_04.completion | 6 + .../trueType.php.testTrueType_05.completion | 6 + .../trueType.php.testTrueType_06.completion | 6 + .../trueType.php.testTrueType_07.completion | 6 + .../trueType.php.testTrueType_08.completion | 6 + .../trueType.php.testTrueType_09.completion | 6 + .../trueType.php.testTrueType_10.completion | 6 + .../issue204958.php.testUseCase1.completion | 1 + .../tests225089.php.testUseCase1.completion | 1 + .../tests225089.php.testUseCase2.completion | 1 + .../tests225089.php.testUseCase3.completion | 1 + .../tests225089.php.testUseCase4.completion | 1 + .../issue242398_01.php.testUseCase1.completion | 1 + .../issue242398_02.php.testUseCase2.completion | 1 + .../formatting/php82/readonlyClasses_01a.php} | 27 +- .../php82/readonlyClasses_01a.php.formatted} | 34 +- .../formatting/php82/readonlyClasses_01b.php} | 34 +- .../php82/readonlyClasses_01b.php.formatted} | 34 +- .../testConstantsInTraits.php | 71 + .../testPHP82ConstantsInTraits.php} | 43 +- .../testPHP82ConstantsInTraits.php.indexed | 71 + .../testPHP82ReadonlyClasses.php} | 35 +- .../testPHP82ReadonlyClasses.php.indexed | 142 + .../lexer/php82/constantsInTraits_01.php} | 43 +- .../testfiles/lexer/php82/readonlyClasses_01.php} | 27 +- .../testConstantsInTraits.php | 70 + .../parser/fieldModificators_03.php.errors | 4 +- .../parser/fieldModificators_04.php.errors | 4 +- .../parser/fieldModificators_05.php.errors | 4 +- .../testfiles/parser/issue190105_02.php.errors | 4 +- .../testfiles/parser/issue211165_01.php.errors | 4 +- .../testfiles/parser/issue211165_03.php.errors | 4 +- .../testfiles/parser/issue211165_07.php.errors | 4 +- .../parser/methodModificators_01.php.errors | 4 +- .../parser/methodModificators_02.php.errors | 4 +- .../parser/methodModificators_03.php.errors | 4 +- ...ctorPropertyPromotionErrorWithStatic.php.errors | 4 +- ...taticReturnTypeErrorWithFieldType_02.php.errors | 4 +- ...cReturnTypeErrorWithParameterType_01.php.errors | 4 +- ...cReturnTypeErrorWithParameterType_03.php.errors | 4 +- .../parser/php80/unionTypesError_03.php.errors | 4 +- .../parser/php81/newInInitializers_02.php | 57 + .../parser/php81/newInInitializers_02.php.errors | 1 + ...tersectionTypesWithUnionTypeError_01.php.errors | 4 +- ...tersectionTypesWithUnionTypeError_02.php.errors | 4 +- ...tersectionTypesWithUnionTypeError_03.php.errors | 4 +- .../readonlyPropertiesWithConstError.php.errors | 4 +- .../readonlyPropertiesWithStaticError.php.errors | 7 +- .../parser/php82/constantsInTraits_01.php} | 43 +- .../parser/php82/constantsInTraits_01.php.errors | 1 + .../data/testfiles/parser/php82/dnfTypes_01.php} | 39 +- .../testfiles/parser/php82/dnfTypes_01.php.errors | 1 + .../php82/fetchPropertiesInConstExpressions_01.php | 78 + ...fetchPropertiesInConstExpressions_01.php.errors | 1 + .../testfiles/parser/php82/readonlyClass_01.php} | 35 +- .../parser/php82/readonlyClass_01.php.errors | 1 + .../parser/php82/readonlyEnumError_01.php} | 23 +- .../parser/php82/readonlyEnumError_01.php.errors | 5 + .../parser/php82/readonlyInterfaceError_01.php} | 23 +- .../php82/readonlyInterfaceError_01.php.errors | 7 + .../parser/php82/readonlyTraitError_01.php} | 23 +- .../parser/php82/readonlyTraitError_01.php.errors | 7 + .../data/testfiles/semantic/constantsInTraits.php | 85 + .../semantic/constantsInTraits.php.semantic | 85 + .../structure/php82/constantsInTraits.php | 79 + .../testfiles/structure/standAloneTrueType.php} | 35 +- ...raits.php.testConstantsInTraits_01a.occurrences | 6 + ...raits.php.testConstantsInTraits_01b.occurrences | 6 + ...raits.php.testConstantsInTraits_01c.occurrences | 6 + ...raits.php.testConstantsInTraits_01d.occurrences | 6 + ...raits.php.testConstantsInTraits_01e.occurrences | 6 + ...raits.php.testConstantsInTraits_01f.occurrences | 6 + ...raits.php.testConstantsInTraits_02a.occurrences | 4 + ...raits.php.testConstantsInTraits_02b.occurrences | 4 + ...raits.php.testConstantsInTraits_02c.occurrences | 4 + ...raits.php.testConstantsInTraits_02d.occurrences | 4 + ...raits.php.testConstantsInTraits_03a.occurrences | 4 + ...raits.php.testConstantsInTraits_03b.occurrences | 4 + ...raits.php.testConstantsInTraits_03c.occurrences | 4 + ...raits.php.testConstantsInTraits_03d.occurrences | 4 + ...raits.php.testConstantsInTraits_04a.occurrences | 2 + ...raits.php.testConstantsInTraits_04b.occurrences | 2 + .../IncorrectEnumHintError/testIncorrectEnums.php | 7 + ...testIncorrectEnums.php.testIncorrectEnums.hints | 6 + .../testClassModifiersFix.php} | 29 +- ...difiersFix.php.testClassModifiersFix_01a.fixed} | 29 +- ...difiersFix.php.testClassModifiersFix_01b.fixed} | 29 +- ...difiersFix.php.testClassModifiersFix_02a.fixed} | 29 +- ...difiersFix.php.testClassModifiersFix_02b.fixed} | 29 +- ...odifiersFix.php.testClassModifiersFix_03.fixed} | 29 +- ...odifiersFix.php.testClassModifiersFix_04.fixed} | 29 +- ...odifiersFix.php.testClassModifiersFix_05.fixed} | 29 +- ...difiersFix.php.testClassModifiersFix_06a.fixed} | 29 +- ...difiersFix.php.testClassModifiersFix_06b.fixed} | 29 +- .../testClassModifiers_01.php} | 32 +- ...assModifiers_01.php.testClassModifiers_01.hints | 34 + .../testReadonlyClassesFix.php} | 28 +- ...ClassesFix.php.testReadonlyClassesFix_01.fixed} | 28 +- ...ClassesFix.php.testReadonlyClassesFix_02.fixed} | 28 +- .../testReadonlyClasses_01.php | 60 + ...onlyClasses_01.php.testReadonlyClasses_01.hints | 35 + .../UnusableTypesHintError/testDnfTypes_01.php} | 39 +- .../testDnfTypes_01.php.testDnfTypes_01.hints | 1 + .../testIntersectionTypes_01.php | 3 + ...tionTypes_01.php.testIntersectionTypes_01.hints | 9 + .../testNullableTypes_01.php} | 45 +- ...NullableTypes_01.php.testNullableTypes_01.hints | 18 + ...leTypes_01.php.testNullableTypes_01_PHP81.hints | 39 + .../UnusableTypesHintError/testUnionTypes_01.php | 11 + .../testUnionTypes_01.php.testUnionTypes_01.hints | 29 +- ...nionTypes_01.php.testUnionTypes_01_PHP81.hints} | 23 + .../editor/completion/PHP82CodeCompletionTest.java | 296 + .../php/editor/csl/GotoDeclarationPHP82Test.java | 80 + .../modules/php/editor/csl/NavigatorPHP82Test.java | 50 + .../modules/php/editor/csl/NavigatorTest.java | 8 + .../editor/csl/OccurrencesFinderImplPHP82Test.java | 96 + .../php/editor/csl/SemanticAnalyzerTest.java | 4 + .../php/editor/indent/PHPFormatterTest.java | 10 + .../modules/php/editor/index/PHPIndexTest.java | 8 + .../php/editor/lexer/PHP82FeaturesTest.java} | 29 +- .../php/editor/parser/ASTPHP5ParserTest.java | 33 + .../php/editor/parser/PhpParserErrorTest.java | 32 + .../modules/php/editor/parser/PrintASTVisitor.java | 16 +- .../verification/ModifiersCheckHintErrorTest.java | 52 + .../verification/UnusableTypesHintErrorTest.java | 32 + php/php.editor/tools/ASTPHP5Parser.cup | 169 +- php/php.project/manifest.mf | 2 +- php/php.project/nbproject/project.xml | 2 +- 466 files changed, 69343 insertions(+), 58879 deletions(-) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists