From a331ac0b21fa9b8919b6981c439f550ed75156ed Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sun, 6 Feb 2022 00:27:18 +0200 Subject: [PATCH 1/2] Finalize issues --- src/Psalm/Issue/AbstractInstantiation.php | 2 +- src/Psalm/Issue/AbstractMethodCall.php | 2 +- src/Psalm/Issue/AmbiguousConstantInheritance.php | 2 +- src/Psalm/Issue/ArgumentTypeCoercion.php | 2 +- src/Psalm/Issue/AssignmentToVoid.php | 2 +- src/Psalm/Issue/CircularReference.php | 2 +- src/Psalm/Issue/ComplexFunction.php | 2 +- src/Psalm/Issue/ComplexMethod.php | 2 +- src/Psalm/Issue/ConfigIssue.php | 2 +- src/Psalm/Issue/ConflictingReferenceConstraint.php | 2 +- src/Psalm/Issue/ConstructorSignatureMismatch.php | 2 +- src/Psalm/Issue/ContinueOutsideLoop.php | 2 +- src/Psalm/Issue/DeprecatedClass.php | 2 +- src/Psalm/Issue/DeprecatedConstant.php | 2 +- src/Psalm/Issue/DeprecatedFunction.php | 2 +- src/Psalm/Issue/DeprecatedInterface.php | 2 +- src/Psalm/Issue/DeprecatedMethod.php | 2 +- src/Psalm/Issue/DeprecatedProperty.php | 2 +- src/Psalm/Issue/DeprecatedTrait.php | 2 +- src/Psalm/Issue/DocblockTypeContradiction.php | 2 +- src/Psalm/Issue/DuplicateArrayKey.php | 2 +- src/Psalm/Issue/DuplicateClass.php | 2 +- src/Psalm/Issue/DuplicateConstant.php | 2 +- src/Psalm/Issue/DuplicateEnumCase.php | 2 +- src/Psalm/Issue/DuplicateEnumCaseValue.php | 2 +- src/Psalm/Issue/DuplicateFunction.php | 2 +- src/Psalm/Issue/DuplicateMethod.php | 2 +- src/Psalm/Issue/DuplicateParam.php | 2 +- src/Psalm/Issue/EmptyArrayAccess.php | 2 +- src/Psalm/Issue/ExtensionRequirementViolation.php | 2 +- src/Psalm/Issue/FalsableReturnStatement.php | 2 +- src/Psalm/Issue/FalseOperand.php | 2 +- src/Psalm/Issue/ForbiddenCode.php | 2 +- src/Psalm/Issue/IfThisIsMismatch.php | 2 +- src/Psalm/Issue/ImplementationRequirementViolation.php | 2 +- src/Psalm/Issue/ImplementedParamTypeMismatch.php | 2 +- src/Psalm/Issue/ImplementedReturnTypeMismatch.php | 2 +- src/Psalm/Issue/ImplicitToStringCast.php | 2 +- src/Psalm/Issue/ImpureByReferenceAssignment.php | 2 +- src/Psalm/Issue/ImpureFunctionCall.php | 2 +- src/Psalm/Issue/ImpureMethodCall.php | 2 +- src/Psalm/Issue/ImpurePropertyAssignment.php | 2 +- src/Psalm/Issue/ImpurePropertyFetch.php | 2 +- src/Psalm/Issue/ImpureStaticProperty.php | 2 +- src/Psalm/Issue/ImpureStaticVariable.php | 2 +- src/Psalm/Issue/ImpureVariable.php | 2 +- src/Psalm/Issue/InaccessibleClassConstant.php | 2 +- src/Psalm/Issue/InaccessibleMethod.php | 2 +- src/Psalm/Issue/InaccessibleProperty.php | 2 +- src/Psalm/Issue/InterfaceInstantiation.php | 2 +- src/Psalm/Issue/InternalClass.php | 2 +- src/Psalm/Issue/InternalMethod.php | 2 +- src/Psalm/Issue/InternalProperty.php | 2 +- src/Psalm/Issue/InvalidArgument.php | 2 +- src/Psalm/Issue/InvalidArrayAccess.php | 2 +- src/Psalm/Issue/InvalidArrayAssignment.php | 2 +- src/Psalm/Issue/InvalidArrayOffset.php | 2 +- src/Psalm/Issue/InvalidAttribute.php | 2 +- src/Psalm/Issue/InvalidCast.php | 2 +- src/Psalm/Issue/InvalidCatch.php | 2 +- src/Psalm/Issue/InvalidClass.php | 2 +- src/Psalm/Issue/InvalidClone.php | 2 +- src/Psalm/Issue/InvalidConstantAssignmentValue.php | 2 +- src/Psalm/Issue/InvalidDocblock.php | 2 +- src/Psalm/Issue/InvalidDocblockParamName.php | 2 +- src/Psalm/Issue/InvalidEnumBackingType.php | 2 +- src/Psalm/Issue/InvalidEnumCaseValue.php | 2 +- src/Psalm/Issue/InvalidExtendClass.php | 2 +- src/Psalm/Issue/InvalidFalsableReturnType.php | 2 +- src/Psalm/Issue/InvalidFunctionCall.php | 2 +- src/Psalm/Issue/InvalidGlobal.php | 2 +- src/Psalm/Issue/InvalidIterator.php | 2 +- src/Psalm/Issue/InvalidLiteralArgument.php | 2 +- src/Psalm/Issue/InvalidMethodCall.php | 2 +- src/Psalm/Issue/InvalidNamedArgument.php | 2 +- src/Psalm/Issue/InvalidNullableReturnType.php | 2 +- src/Psalm/Issue/InvalidOperand.php | 2 +- src/Psalm/Issue/InvalidParamDefault.php | 2 +- src/Psalm/Issue/InvalidParent.php | 2 +- src/Psalm/Issue/InvalidPassByReference.php | 2 +- src/Psalm/Issue/InvalidPropertyAssignment.php | 2 +- src/Psalm/Issue/InvalidPropertyAssignmentValue.php | 2 +- src/Psalm/Issue/InvalidPropertyFetch.php | 2 +- src/Psalm/Issue/InvalidReturnStatement.php | 2 +- src/Psalm/Issue/InvalidReturnType.php | 2 +- src/Psalm/Issue/InvalidScalarArgument.php | 2 +- src/Psalm/Issue/InvalidScope.php | 2 +- src/Psalm/Issue/InvalidStaticInvocation.php | 2 +- src/Psalm/Issue/InvalidStringClass.php | 2 +- src/Psalm/Issue/InvalidTemplateParam.php | 2 +- src/Psalm/Issue/InvalidThrow.php | 2 +- src/Psalm/Issue/InvalidToString.php | 2 +- src/Psalm/Issue/InvalidTraversableImplementation.php | 2 +- src/Psalm/Issue/InvalidTypeImport.php | 2 +- src/Psalm/Issue/LessSpecificClassConstantType.php | 2 +- src/Psalm/Issue/LessSpecificImplementedReturnType.php | 2 +- src/Psalm/Issue/LessSpecificReturnStatement.php | 2 +- src/Psalm/Issue/LessSpecificReturnType.php | 2 +- src/Psalm/Issue/LoopInvalidation.php | 2 +- src/Psalm/Issue/MethodSignatureMismatch.php | 2 +- src/Psalm/Issue/MethodSignatureMustOmitReturnType.php | 2 +- src/Psalm/Issue/MethodSignatureMustProvideReturnType.php | 2 +- src/Psalm/Issue/MismatchingDocblockParamType.php | 2 +- src/Psalm/Issue/MismatchingDocblockPropertyType.php | 2 +- src/Psalm/Issue/MismatchingDocblockReturnType.php | 2 +- src/Psalm/Issue/MissingClosureParamType.php | 2 +- src/Psalm/Issue/MissingClosureReturnType.php | 2 +- src/Psalm/Issue/MissingConstructor.php | 2 +- src/Psalm/Issue/MissingDependency.php | 2 +- src/Psalm/Issue/MissingDocblockType.php | 2 +- src/Psalm/Issue/MissingFile.php | 2 +- src/Psalm/Issue/MissingImmutableAnnotation.php | 2 +- src/Psalm/Issue/MissingParamType.php | 2 +- src/Psalm/Issue/MissingPropertyType.php | 2 +- src/Psalm/Issue/MissingReturnType.php | 2 +- src/Psalm/Issue/MissingTemplateParam.php | 2 +- src/Psalm/Issue/MissingThrowsDocblock.php | 2 +- src/Psalm/Issue/MixedArgument.php | 2 +- src/Psalm/Issue/MixedArgumentTypeCoercion.php | 2 +- src/Psalm/Issue/MixedArrayAccess.php | 2 +- src/Psalm/Issue/MixedArrayAssignment.php | 2 +- src/Psalm/Issue/MixedArrayOffset.php | 2 +- src/Psalm/Issue/MixedArrayTypeCoercion.php | 2 +- src/Psalm/Issue/MixedAssignment.php | 2 +- src/Psalm/Issue/MixedClone.php | 2 +- src/Psalm/Issue/MixedFunctionCall.php | 2 +- src/Psalm/Issue/MixedInferredReturnType.php | 2 +- src/Psalm/Issue/MixedMethodCall.php | 2 +- src/Psalm/Issue/MixedOperand.php | 2 +- src/Psalm/Issue/MixedPropertyAssignment.php | 2 +- src/Psalm/Issue/MixedPropertyFetch.php | 2 +- src/Psalm/Issue/MixedPropertyTypeCoercion.php | 2 +- src/Psalm/Issue/MixedReturnStatement.php | 2 +- src/Psalm/Issue/MixedReturnTypeCoercion.php | 2 +- src/Psalm/Issue/MixedStringOffsetAssignment.php | 2 +- src/Psalm/Issue/MoreSpecificImplementedParamType.php | 2 +- src/Psalm/Issue/MoreSpecificReturnType.php | 2 +- src/Psalm/Issue/MutableDependency.php | 2 +- src/Psalm/Issue/NamedArgumentNotAllowed.php | 2 +- src/Psalm/Issue/NoEnumProperties.php | 2 +- src/Psalm/Issue/NoInterfaceProperties.php | 2 +- src/Psalm/Issue/NoValue.php | 2 +- src/Psalm/Issue/NonStaticSelfCall.php | 2 +- src/Psalm/Issue/NullArgument.php | 2 +- src/Psalm/Issue/NullArrayAccess.php | 2 +- src/Psalm/Issue/NullArrayOffset.php | 2 +- src/Psalm/Issue/NullFunctionCall.php | 2 +- src/Psalm/Issue/NullIterator.php | 2 +- src/Psalm/Issue/NullOperand.php | 2 +- src/Psalm/Issue/NullPropertyAssignment.php | 2 +- src/Psalm/Issue/NullPropertyFetch.php | 2 +- src/Psalm/Issue/NullReference.php | 2 +- src/Psalm/Issue/NullableReturnStatement.php | 2 +- src/Psalm/Issue/OverriddenInterfaceConstant.php | 2 +- src/Psalm/Issue/OverriddenMethodAccess.php | 2 +- src/Psalm/Issue/OverriddenPropertyAccess.php | 2 +- src/Psalm/Issue/ParadoxicalCondition.php | 2 +- src/Psalm/Issue/ParamNameMismatch.php | 2 +- src/Psalm/Issue/ParentNotFound.php | 2 +- src/Psalm/Issue/ParseError.php | 2 +- src/Psalm/Issue/PossibleRawObjectIteration.php | 2 +- src/Psalm/Issue/PossiblyFalseArgument.php | 2 +- src/Psalm/Issue/PossiblyFalseIterator.php | 2 +- src/Psalm/Issue/PossiblyFalseOperand.php | 2 +- src/Psalm/Issue/PossiblyFalsePropertyAssignmentValue.php | 2 +- src/Psalm/Issue/PossiblyFalseReference.php | 2 +- src/Psalm/Issue/PossiblyInvalidArgument.php | 2 +- src/Psalm/Issue/PossiblyInvalidArrayAccess.php | 2 +- src/Psalm/Issue/PossiblyInvalidArrayAssignment.php | 2 +- src/Psalm/Issue/PossiblyInvalidArrayOffset.php | 2 +- src/Psalm/Issue/PossiblyInvalidCast.php | 2 +- src/Psalm/Issue/PossiblyInvalidClone.php | 2 +- src/Psalm/Issue/PossiblyInvalidDocblockTag.php | 2 +- src/Psalm/Issue/PossiblyInvalidFunctionCall.php | 2 +- src/Psalm/Issue/PossiblyInvalidIterator.php | 2 +- src/Psalm/Issue/PossiblyInvalidMethodCall.php | 2 +- src/Psalm/Issue/PossiblyInvalidOperand.php | 2 +- src/Psalm/Issue/PossiblyInvalidPropertyAssignment.php | 2 +- src/Psalm/Issue/PossiblyInvalidPropertyAssignmentValue.php | 2 +- src/Psalm/Issue/PossiblyInvalidPropertyFetch.php | 2 +- src/Psalm/Issue/PossiblyNullArgument.php | 2 +- src/Psalm/Issue/PossiblyNullArrayAccess.php | 2 +- src/Psalm/Issue/PossiblyNullArrayAssignment.php | 2 +- src/Psalm/Issue/PossiblyNullArrayOffset.php | 2 +- src/Psalm/Issue/PossiblyNullFunctionCall.php | 2 +- src/Psalm/Issue/PossiblyNullIterator.php | 2 +- src/Psalm/Issue/PossiblyNullOperand.php | 2 +- src/Psalm/Issue/PossiblyNullPropertyAssignment.php | 2 +- src/Psalm/Issue/PossiblyNullPropertyAssignmentValue.php | 2 +- src/Psalm/Issue/PossiblyNullPropertyFetch.php | 2 +- src/Psalm/Issue/PossiblyNullReference.php | 2 +- src/Psalm/Issue/PossiblyUndefinedArrayOffset.php | 2 +- src/Psalm/Issue/PossiblyUndefinedGlobalVariable.php | 2 +- src/Psalm/Issue/PossiblyUndefinedIntArrayOffset.php | 2 +- src/Psalm/Issue/PossiblyUndefinedMethod.php | 2 +- src/Psalm/Issue/PossiblyUndefinedStringArrayOffset.php | 2 +- src/Psalm/Issue/PossiblyUndefinedVariable.php | 2 +- src/Psalm/Issue/PossiblyUnusedMethod.php | 2 +- src/Psalm/Issue/PossiblyUnusedParam.php | 2 +- src/Psalm/Issue/PossiblyUnusedProperty.php | 2 +- src/Psalm/Issue/PossiblyUnusedReturnValue.php | 2 +- src/Psalm/Issue/PropertyNotSetInConstructor.php | 2 +- src/Psalm/Issue/PropertyTypeCoercion.php | 2 +- src/Psalm/Issue/PsalmInternalError.php | 2 +- src/Psalm/Issue/RawObjectIteration.php | 2 +- src/Psalm/Issue/RedundantCast.php | 2 +- src/Psalm/Issue/RedundantCastGivenDocblockType.php | 2 +- src/Psalm/Issue/RedundantCondition.php | 2 +- src/Psalm/Issue/RedundantConditionGivenDocblockType.php | 2 +- src/Psalm/Issue/RedundantFunctionCall.php | 2 +- src/Psalm/Issue/RedundantFunctionCallGivenDocblockType.php | 2 +- src/Psalm/Issue/RedundantIdentityWithTrue.php | 2 +- src/Psalm/Issue/RedundantPropertyInitializationCheck.php | 2 +- src/Psalm/Issue/ReferenceConstraintViolation.php | 2 +- src/Psalm/Issue/ReferenceReusedFromConfusingScope.php | 2 +- src/Psalm/Issue/ReservedWord.php | 2 +- src/Psalm/Issue/StringIncrement.php | 2 +- src/Psalm/Issue/TaintedCallable.php | 2 +- src/Psalm/Issue/TaintedCookie.php | 2 +- src/Psalm/Issue/TaintedCustom.php | 2 +- src/Psalm/Issue/TaintedEval.php | 2 +- src/Psalm/Issue/TaintedFile.php | 2 +- src/Psalm/Issue/TaintedHeader.php | 2 +- src/Psalm/Issue/TaintedHtml.php | 2 +- src/Psalm/Issue/TaintedInclude.php | 2 +- src/Psalm/Issue/TaintedLdap.php | 2 +- src/Psalm/Issue/TaintedSSRF.php | 2 +- src/Psalm/Issue/TaintedShell.php | 2 +- src/Psalm/Issue/TaintedSql.php | 2 +- src/Psalm/Issue/TaintedSystemSecret.php | 2 +- src/Psalm/Issue/TaintedTextWithQuotes.php | 2 +- src/Psalm/Issue/TaintedUnserialize.php | 2 +- src/Psalm/Issue/TaintedUserSecret.php | 2 +- src/Psalm/Issue/TooFewArguments.php | 2 +- src/Psalm/Issue/TooManyArguments.php | 2 +- src/Psalm/Issue/TooManyTemplateParams.php | 2 +- src/Psalm/Issue/Trace.php | 2 +- src/Psalm/Issue/TraitMethodSignatureMismatch.php | 2 +- src/Psalm/Issue/TypeDoesNotContainNull.php | 2 +- src/Psalm/Issue/TypeDoesNotContainType.php | 2 +- src/Psalm/Issue/UncaughtThrowInGlobalScope.php | 2 +- src/Psalm/Issue/UndefinedAttributeClass.php | 2 +- src/Psalm/Issue/UndefinedClass.php | 2 +- src/Psalm/Issue/UndefinedConstant.php | 2 +- src/Psalm/Issue/UndefinedDocblockClass.php | 2 +- src/Psalm/Issue/UndefinedFunction.php | 2 +- src/Psalm/Issue/UndefinedGlobalVariable.php | 2 +- src/Psalm/Issue/UndefinedInterface.php | 2 +- src/Psalm/Issue/UndefinedInterfaceMethod.php | 2 +- src/Psalm/Issue/UndefinedMagicMethod.php | 2 +- src/Psalm/Issue/UndefinedMagicPropertyAssignment.php | 2 +- src/Psalm/Issue/UndefinedMagicPropertyFetch.php | 2 +- src/Psalm/Issue/UndefinedMethod.php | 2 +- src/Psalm/Issue/UndefinedPropertyAssignment.php | 2 +- src/Psalm/Issue/UndefinedPropertyFetch.php | 2 +- src/Psalm/Issue/UndefinedThisPropertyAssignment.php | 2 +- src/Psalm/Issue/UndefinedThisPropertyFetch.php | 2 +- src/Psalm/Issue/UndefinedTrace.php | 2 +- src/Psalm/Issue/UndefinedTrait.php | 2 +- src/Psalm/Issue/UndefinedVariable.php | 2 +- src/Psalm/Issue/UnevaluatedCode.php | 2 +- src/Psalm/Issue/UnhandledMatchCondition.php | 2 +- src/Psalm/Issue/UnimplementedAbstractMethod.php | 2 +- src/Psalm/Issue/UnimplementedInterfaceMethod.php | 2 +- src/Psalm/Issue/UninitializedProperty.php | 2 +- src/Psalm/Issue/UnnecessaryVarAnnotation.php | 2 +- src/Psalm/Issue/UnrecognizedExpression.php | 2 +- src/Psalm/Issue/UnrecognizedStatement.php | 2 +- src/Psalm/Issue/UnresolvableConstant.php | 2 +- src/Psalm/Issue/UnresolvableInclude.php | 2 +- src/Psalm/Issue/UnsafeGenericInstantiation.php | 2 +- src/Psalm/Issue/UnsafeInstantiation.php | 2 +- src/Psalm/Issue/UnusedClass.php | 2 +- src/Psalm/Issue/UnusedClosureParam.php | 2 +- src/Psalm/Issue/UnusedConstructor.php | 2 +- src/Psalm/Issue/UnusedForeachValue.php | 2 +- src/Psalm/Issue/UnusedFunctionCall.php | 2 +- src/Psalm/Issue/UnusedMethod.php | 2 +- src/Psalm/Issue/UnusedMethodCall.php | 2 +- src/Psalm/Issue/UnusedParam.php | 2 +- src/Psalm/Issue/UnusedProperty.php | 2 +- src/Psalm/Issue/UnusedPsalmSuppress.php | 2 +- src/Psalm/Issue/UnusedReturnValue.php | 2 +- src/Psalm/Issue/UnusedVariable.php | 2 +- 284 files changed, 284 insertions(+), 284 deletions(-) diff --git a/src/Psalm/Issue/AbstractInstantiation.php b/src/Psalm/Issue/AbstractInstantiation.php index a3a3a1a4c67..d6aa9f3b540 100644 --- a/src/Psalm/Issue/AbstractInstantiation.php +++ b/src/Psalm/Issue/AbstractInstantiation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class AbstractInstantiation extends CodeIssue +final class AbstractInstantiation extends CodeIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 72; diff --git a/src/Psalm/Issue/AbstractMethodCall.php b/src/Psalm/Issue/AbstractMethodCall.php index 9bab123bf0a..03cdc6dbbac 100644 --- a/src/Psalm/Issue/AbstractMethodCall.php +++ b/src/Psalm/Issue/AbstractMethodCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class AbstractMethodCall extends CodeIssue +final class AbstractMethodCall extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 223; diff --git a/src/Psalm/Issue/AmbiguousConstantInheritance.php b/src/Psalm/Issue/AmbiguousConstantInheritance.php index 9da852f6b5b..d7330b09beb 100644 --- a/src/Psalm/Issue/AmbiguousConstantInheritance.php +++ b/src/Psalm/Issue/AmbiguousConstantInheritance.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class AmbiguousConstantInheritance extends ClassConstantIssue +final class AmbiguousConstantInheritance extends ClassConstantIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 305; diff --git a/src/Psalm/Issue/ArgumentTypeCoercion.php b/src/Psalm/Issue/ArgumentTypeCoercion.php index e200e56467a..516fd4104d6 100644 --- a/src/Psalm/Issue/ArgumentTypeCoercion.php +++ b/src/Psalm/Issue/ArgumentTypeCoercion.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ArgumentTypeCoercion extends ArgumentIssue +final class ArgumentTypeCoercion extends ArgumentIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 193; diff --git a/src/Psalm/Issue/AssignmentToVoid.php b/src/Psalm/Issue/AssignmentToVoid.php index bcb6eb725ec..fd3f6c1be2f 100644 --- a/src/Psalm/Issue/AssignmentToVoid.php +++ b/src/Psalm/Issue/AssignmentToVoid.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class AssignmentToVoid extends CodeIssue +final class AssignmentToVoid extends CodeIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 121; diff --git a/src/Psalm/Issue/CircularReference.php b/src/Psalm/Issue/CircularReference.php index dcf68d3a8f6..8a581497c98 100644 --- a/src/Psalm/Issue/CircularReference.php +++ b/src/Psalm/Issue/CircularReference.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class CircularReference extends CodeIssue +final class CircularReference extends CodeIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 131; diff --git a/src/Psalm/Issue/ComplexFunction.php b/src/Psalm/Issue/ComplexFunction.php index bce1eb0590a..6db2fec3865 100644 --- a/src/Psalm/Issue/ComplexFunction.php +++ b/src/Psalm/Issue/ComplexFunction.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ComplexFunction extends CodeIssue +final class ComplexFunction extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 259; diff --git a/src/Psalm/Issue/ComplexMethod.php b/src/Psalm/Issue/ComplexMethod.php index 63ddbf2186e..ef785f644a5 100644 --- a/src/Psalm/Issue/ComplexMethod.php +++ b/src/Psalm/Issue/ComplexMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ComplexMethod extends CodeIssue +final class ComplexMethod extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 260; diff --git a/src/Psalm/Issue/ConfigIssue.php b/src/Psalm/Issue/ConfigIssue.php index 8697cb0a4b7..be0cac23055 100644 --- a/src/Psalm/Issue/ConfigIssue.php +++ b/src/Psalm/Issue/ConfigIssue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ConfigIssue extends CodeIssue +final class ConfigIssue extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 271; diff --git a/src/Psalm/Issue/ConflictingReferenceConstraint.php b/src/Psalm/Issue/ConflictingReferenceConstraint.php index 4afada5aead..62755aade97 100644 --- a/src/Psalm/Issue/ConflictingReferenceConstraint.php +++ b/src/Psalm/Issue/ConflictingReferenceConstraint.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ConflictingReferenceConstraint extends CodeIssue +final class ConflictingReferenceConstraint extends CodeIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 85; diff --git a/src/Psalm/Issue/ConstructorSignatureMismatch.php b/src/Psalm/Issue/ConstructorSignatureMismatch.php index 404d6710039..e4ac1ac6967 100644 --- a/src/Psalm/Issue/ConstructorSignatureMismatch.php +++ b/src/Psalm/Issue/ConstructorSignatureMismatch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ConstructorSignatureMismatch extends CodeIssue +final class ConstructorSignatureMismatch extends CodeIssue { public const ERROR_LEVEL = 5; public const SHORTCODE = 231; diff --git a/src/Psalm/Issue/ContinueOutsideLoop.php b/src/Psalm/Issue/ContinueOutsideLoop.php index 1a36c6fffb5..4de7e9216b2 100644 --- a/src/Psalm/Issue/ContinueOutsideLoop.php +++ b/src/Psalm/Issue/ContinueOutsideLoop.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ContinueOutsideLoop extends CodeIssue +final class ContinueOutsideLoop extends CodeIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 43; diff --git a/src/Psalm/Issue/DeprecatedClass.php b/src/Psalm/Issue/DeprecatedClass.php index 2b1ac4683b5..775173d4b0f 100644 --- a/src/Psalm/Issue/DeprecatedClass.php +++ b/src/Psalm/Issue/DeprecatedClass.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DeprecatedClass extends ClassIssue +final class DeprecatedClass extends ClassIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 98; diff --git a/src/Psalm/Issue/DeprecatedConstant.php b/src/Psalm/Issue/DeprecatedConstant.php index abbeb7ac5d9..437d5f6c458 100644 --- a/src/Psalm/Issue/DeprecatedConstant.php +++ b/src/Psalm/Issue/DeprecatedConstant.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DeprecatedConstant extends CodeIssue +final class DeprecatedConstant extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 170; diff --git a/src/Psalm/Issue/DeprecatedFunction.php b/src/Psalm/Issue/DeprecatedFunction.php index b207a0119c5..62816057892 100644 --- a/src/Psalm/Issue/DeprecatedFunction.php +++ b/src/Psalm/Issue/DeprecatedFunction.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DeprecatedFunction extends FunctionIssue +final class DeprecatedFunction extends FunctionIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 201; diff --git a/src/Psalm/Issue/DeprecatedInterface.php b/src/Psalm/Issue/DeprecatedInterface.php index 69989a82b31..4941fa3c5aa 100644 --- a/src/Psalm/Issue/DeprecatedInterface.php +++ b/src/Psalm/Issue/DeprecatedInterface.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DeprecatedInterface extends ClassIssue +final class DeprecatedInterface extends ClassIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 152; diff --git a/src/Psalm/Issue/DeprecatedMethod.php b/src/Psalm/Issue/DeprecatedMethod.php index b923852e2b2..08dc69f52ad 100644 --- a/src/Psalm/Issue/DeprecatedMethod.php +++ b/src/Psalm/Issue/DeprecatedMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DeprecatedMethod extends MethodIssue +final class DeprecatedMethod extends MethodIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 1; diff --git a/src/Psalm/Issue/DeprecatedProperty.php b/src/Psalm/Issue/DeprecatedProperty.php index ebb2ccd02b1..920cfedcf6b 100644 --- a/src/Psalm/Issue/DeprecatedProperty.php +++ b/src/Psalm/Issue/DeprecatedProperty.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DeprecatedProperty extends PropertyIssue +final class DeprecatedProperty extends PropertyIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 99; diff --git a/src/Psalm/Issue/DeprecatedTrait.php b/src/Psalm/Issue/DeprecatedTrait.php index 29122573763..6aa4606e7b1 100644 --- a/src/Psalm/Issue/DeprecatedTrait.php +++ b/src/Psalm/Issue/DeprecatedTrait.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DeprecatedTrait extends CodeIssue +final class DeprecatedTrait extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 171; diff --git a/src/Psalm/Issue/DocblockTypeContradiction.php b/src/Psalm/Issue/DocblockTypeContradiction.php index 59e845bb71b..856e86f777d 100644 --- a/src/Psalm/Issue/DocblockTypeContradiction.php +++ b/src/Psalm/Issue/DocblockTypeContradiction.php @@ -4,7 +4,7 @@ use Psalm\CodeLocation; -class DocblockTypeContradiction extends CodeIssue +final class DocblockTypeContradiction extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 155; diff --git a/src/Psalm/Issue/DuplicateArrayKey.php b/src/Psalm/Issue/DuplicateArrayKey.php index 9bb2d05393a..e08d73bbfe7 100644 --- a/src/Psalm/Issue/DuplicateArrayKey.php +++ b/src/Psalm/Issue/DuplicateArrayKey.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DuplicateArrayKey extends CodeIssue +final class DuplicateArrayKey extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 151; diff --git a/src/Psalm/Issue/DuplicateClass.php b/src/Psalm/Issue/DuplicateClass.php index a503f5ef171..7d03e1b8492 100644 --- a/src/Psalm/Issue/DuplicateClass.php +++ b/src/Psalm/Issue/DuplicateClass.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DuplicateClass extends CodeIssue +final class DuplicateClass extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 71; diff --git a/src/Psalm/Issue/DuplicateConstant.php b/src/Psalm/Issue/DuplicateConstant.php index 73783e32169..2ddfb86e64f 100644 --- a/src/Psalm/Issue/DuplicateConstant.php +++ b/src/Psalm/Issue/DuplicateConstant.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DuplicateConstant extends ClassIssue +final class DuplicateConstant extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 302; diff --git a/src/Psalm/Issue/DuplicateEnumCase.php b/src/Psalm/Issue/DuplicateEnumCase.php index 06f768b7219..b4881cebb2c 100644 --- a/src/Psalm/Issue/DuplicateEnumCase.php +++ b/src/Psalm/Issue/DuplicateEnumCase.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DuplicateEnumCase extends ClassIssue +final class DuplicateEnumCase extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 277; diff --git a/src/Psalm/Issue/DuplicateEnumCaseValue.php b/src/Psalm/Issue/DuplicateEnumCaseValue.php index 7c0bd49a1ac..88ffeca8c3a 100644 --- a/src/Psalm/Issue/DuplicateEnumCaseValue.php +++ b/src/Psalm/Issue/DuplicateEnumCaseValue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DuplicateEnumCaseValue extends ClassIssue +final class DuplicateEnumCaseValue extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 279; diff --git a/src/Psalm/Issue/DuplicateFunction.php b/src/Psalm/Issue/DuplicateFunction.php index 93a78812b24..d0b6c65e84e 100644 --- a/src/Psalm/Issue/DuplicateFunction.php +++ b/src/Psalm/Issue/DuplicateFunction.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DuplicateFunction extends CodeIssue +final class DuplicateFunction extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 180; diff --git a/src/Psalm/Issue/DuplicateMethod.php b/src/Psalm/Issue/DuplicateMethod.php index 1d39a161300..e5b33a9ae14 100644 --- a/src/Psalm/Issue/DuplicateMethod.php +++ b/src/Psalm/Issue/DuplicateMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DuplicateMethod extends CodeIssue +final class DuplicateMethod extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 178; diff --git a/src/Psalm/Issue/DuplicateParam.php b/src/Psalm/Issue/DuplicateParam.php index 673ec5a6fa0..c885e7c0cc1 100644 --- a/src/Psalm/Issue/DuplicateParam.php +++ b/src/Psalm/Issue/DuplicateParam.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class DuplicateParam extends CodeIssue +final class DuplicateParam extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 65; diff --git a/src/Psalm/Issue/EmptyArrayAccess.php b/src/Psalm/Issue/EmptyArrayAccess.php index b9039a7d4c1..e8256aa1597 100644 --- a/src/Psalm/Issue/EmptyArrayAccess.php +++ b/src/Psalm/Issue/EmptyArrayAccess.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class EmptyArrayAccess extends CodeIssue +final class EmptyArrayAccess extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 100; diff --git a/src/Psalm/Issue/ExtensionRequirementViolation.php b/src/Psalm/Issue/ExtensionRequirementViolation.php index 4fce9cdd448..3f892fd5944 100644 --- a/src/Psalm/Issue/ExtensionRequirementViolation.php +++ b/src/Psalm/Issue/ExtensionRequirementViolation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ExtensionRequirementViolation extends CodeIssue +final class ExtensionRequirementViolation extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 239; diff --git a/src/Psalm/Issue/FalsableReturnStatement.php b/src/Psalm/Issue/FalsableReturnStatement.php index 98efe6e2164..58f6d7fb69f 100644 --- a/src/Psalm/Issue/FalsableReturnStatement.php +++ b/src/Psalm/Issue/FalsableReturnStatement.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class FalsableReturnStatement extends CodeIssue +final class FalsableReturnStatement extends CodeIssue { public const ERROR_LEVEL = 5; public const SHORTCODE = 137; diff --git a/src/Psalm/Issue/FalseOperand.php b/src/Psalm/Issue/FalseOperand.php index 076b619f4c0..8fb128a5bc8 100644 --- a/src/Psalm/Issue/FalseOperand.php +++ b/src/Psalm/Issue/FalseOperand.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class FalseOperand extends CodeIssue +final class FalseOperand extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 161; diff --git a/src/Psalm/Issue/ForbiddenCode.php b/src/Psalm/Issue/ForbiddenCode.php index 5bd4479656c..7f72ae14264 100644 --- a/src/Psalm/Issue/ForbiddenCode.php +++ b/src/Psalm/Issue/ForbiddenCode.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ForbiddenCode extends CodeIssue +final class ForbiddenCode extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 2; diff --git a/src/Psalm/Issue/IfThisIsMismatch.php b/src/Psalm/Issue/IfThisIsMismatch.php index c9bcba5dc45..508b2176eeb 100644 --- a/src/Psalm/Issue/IfThisIsMismatch.php +++ b/src/Psalm/Issue/IfThisIsMismatch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class IfThisIsMismatch extends CodeIssue +final class IfThisIsMismatch extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 300; diff --git a/src/Psalm/Issue/ImplementationRequirementViolation.php b/src/Psalm/Issue/ImplementationRequirementViolation.php index 1b6886f02c0..7b62692aaa4 100644 --- a/src/Psalm/Issue/ImplementationRequirementViolation.php +++ b/src/Psalm/Issue/ImplementationRequirementViolation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImplementationRequirementViolation extends CodeIssue +final class ImplementationRequirementViolation extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 240; diff --git a/src/Psalm/Issue/ImplementedParamTypeMismatch.php b/src/Psalm/Issue/ImplementedParamTypeMismatch.php index a275a5aefb5..7aa091bac25 100644 --- a/src/Psalm/Issue/ImplementedParamTypeMismatch.php +++ b/src/Psalm/Issue/ImplementedParamTypeMismatch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImplementedParamTypeMismatch extends CodeIssue +final class ImplementedParamTypeMismatch extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 199; diff --git a/src/Psalm/Issue/ImplementedReturnTypeMismatch.php b/src/Psalm/Issue/ImplementedReturnTypeMismatch.php index 07dc73e7d23..1a9b2ea4671 100644 --- a/src/Psalm/Issue/ImplementedReturnTypeMismatch.php +++ b/src/Psalm/Issue/ImplementedReturnTypeMismatch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImplementedReturnTypeMismatch extends CodeIssue +final class ImplementedReturnTypeMismatch extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 123; diff --git a/src/Psalm/Issue/ImplicitToStringCast.php b/src/Psalm/Issue/ImplicitToStringCast.php index b6cc00f1988..53f1b122f4b 100644 --- a/src/Psalm/Issue/ImplicitToStringCast.php +++ b/src/Psalm/Issue/ImplicitToStringCast.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImplicitToStringCast extends CodeIssue +final class ImplicitToStringCast extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 60; diff --git a/src/Psalm/Issue/ImpureByReferenceAssignment.php b/src/Psalm/Issue/ImpureByReferenceAssignment.php index 64d69013c9f..517d4893568 100644 --- a/src/Psalm/Issue/ImpureByReferenceAssignment.php +++ b/src/Psalm/Issue/ImpureByReferenceAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImpureByReferenceAssignment extends CodeIssue +final class ImpureByReferenceAssignment extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 220; diff --git a/src/Psalm/Issue/ImpureFunctionCall.php b/src/Psalm/Issue/ImpureFunctionCall.php index da21353481f..8080574b876 100644 --- a/src/Psalm/Issue/ImpureFunctionCall.php +++ b/src/Psalm/Issue/ImpureFunctionCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImpureFunctionCall extends CodeIssue +final class ImpureFunctionCall extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 202; diff --git a/src/Psalm/Issue/ImpureMethodCall.php b/src/Psalm/Issue/ImpureMethodCall.php index 9e5017efef5..234677a7bac 100644 --- a/src/Psalm/Issue/ImpureMethodCall.php +++ b/src/Psalm/Issue/ImpureMethodCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImpureMethodCall extends CodeIssue +final class ImpureMethodCall extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 203; diff --git a/src/Psalm/Issue/ImpurePropertyAssignment.php b/src/Psalm/Issue/ImpurePropertyAssignment.php index 8576df6ce12..01e6f8d7aa3 100644 --- a/src/Psalm/Issue/ImpurePropertyAssignment.php +++ b/src/Psalm/Issue/ImpurePropertyAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImpurePropertyAssignment extends CodeIssue +final class ImpurePropertyAssignment extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 204; diff --git a/src/Psalm/Issue/ImpurePropertyFetch.php b/src/Psalm/Issue/ImpurePropertyFetch.php index 9ceb1e2eb92..b1410a03735 100644 --- a/src/Psalm/Issue/ImpurePropertyFetch.php +++ b/src/Psalm/Issue/ImpurePropertyFetch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImpurePropertyFetch extends CodeIssue +final class ImpurePropertyFetch extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 234; diff --git a/src/Psalm/Issue/ImpureStaticProperty.php b/src/Psalm/Issue/ImpureStaticProperty.php index ac3237948e2..dcd19fd57f6 100644 --- a/src/Psalm/Issue/ImpureStaticProperty.php +++ b/src/Psalm/Issue/ImpureStaticProperty.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImpureStaticProperty extends CodeIssue +final class ImpureStaticProperty extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 221; diff --git a/src/Psalm/Issue/ImpureStaticVariable.php b/src/Psalm/Issue/ImpureStaticVariable.php index 00d885875a7..0ceba706c1d 100644 --- a/src/Psalm/Issue/ImpureStaticVariable.php +++ b/src/Psalm/Issue/ImpureStaticVariable.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImpureStaticVariable extends CodeIssue +final class ImpureStaticVariable extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 210; diff --git a/src/Psalm/Issue/ImpureVariable.php b/src/Psalm/Issue/ImpureVariable.php index ec9e356e949..218fcf16682 100644 --- a/src/Psalm/Issue/ImpureVariable.php +++ b/src/Psalm/Issue/ImpureVariable.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ImpureVariable extends CodeIssue +final class ImpureVariable extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 235; diff --git a/src/Psalm/Issue/InaccessibleClassConstant.php b/src/Psalm/Issue/InaccessibleClassConstant.php index e0d02e2841a..447c0e95919 100644 --- a/src/Psalm/Issue/InaccessibleClassConstant.php +++ b/src/Psalm/Issue/InaccessibleClassConstant.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InaccessibleClassConstant extends CodeIssue +final class InaccessibleClassConstant extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 53; diff --git a/src/Psalm/Issue/InaccessibleMethod.php b/src/Psalm/Issue/InaccessibleMethod.php index 435655b84b2..a64f6cec27b 100644 --- a/src/Psalm/Issue/InaccessibleMethod.php +++ b/src/Psalm/Issue/InaccessibleMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InaccessibleMethod extends CodeIssue +final class InaccessibleMethod extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 3; diff --git a/src/Psalm/Issue/InaccessibleProperty.php b/src/Psalm/Issue/InaccessibleProperty.php index dbff125d8c7..af45bec7819 100644 --- a/src/Psalm/Issue/InaccessibleProperty.php +++ b/src/Psalm/Issue/InaccessibleProperty.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InaccessibleProperty extends CodeIssue +final class InaccessibleProperty extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 54; diff --git a/src/Psalm/Issue/InterfaceInstantiation.php b/src/Psalm/Issue/InterfaceInstantiation.php index a5a36b1a56a..8d2a7b89115 100644 --- a/src/Psalm/Issue/InterfaceInstantiation.php +++ b/src/Psalm/Issue/InterfaceInstantiation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InterfaceInstantiation extends CodeIssue +final class InterfaceInstantiation extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 158; diff --git a/src/Psalm/Issue/InternalClass.php b/src/Psalm/Issue/InternalClass.php index 26e2df0b64f..5332579ed89 100644 --- a/src/Psalm/Issue/InternalClass.php +++ b/src/Psalm/Issue/InternalClass.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InternalClass extends ClassIssue +final class InternalClass extends ClassIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 174; diff --git a/src/Psalm/Issue/InternalMethod.php b/src/Psalm/Issue/InternalMethod.php index a7e19d6f89c..e1dbdbd4461 100644 --- a/src/Psalm/Issue/InternalMethod.php +++ b/src/Psalm/Issue/InternalMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InternalMethod extends MethodIssue +final class InternalMethod extends MethodIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 175; diff --git a/src/Psalm/Issue/InternalProperty.php b/src/Psalm/Issue/InternalProperty.php index 4d4510a1076..d2dc2543065 100644 --- a/src/Psalm/Issue/InternalProperty.php +++ b/src/Psalm/Issue/InternalProperty.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InternalProperty extends PropertyIssue +final class InternalProperty extends PropertyIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 176; diff --git a/src/Psalm/Issue/InvalidArgument.php b/src/Psalm/Issue/InvalidArgument.php index 5e082e21403..2091aba3594 100644 --- a/src/Psalm/Issue/InvalidArgument.php +++ b/src/Psalm/Issue/InvalidArgument.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidArgument extends ArgumentIssue +final class InvalidArgument extends ArgumentIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 4; diff --git a/src/Psalm/Issue/InvalidArrayAccess.php b/src/Psalm/Issue/InvalidArrayAccess.php index 76293b1eb4f..71ef7f6c143 100644 --- a/src/Psalm/Issue/InvalidArrayAccess.php +++ b/src/Psalm/Issue/InvalidArrayAccess.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidArrayAccess extends CodeIssue +final class InvalidArrayAccess extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 5; diff --git a/src/Psalm/Issue/InvalidArrayAssignment.php b/src/Psalm/Issue/InvalidArrayAssignment.php index 565e50ba53d..d8d45116607 100644 --- a/src/Psalm/Issue/InvalidArrayAssignment.php +++ b/src/Psalm/Issue/InvalidArrayAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidArrayAssignment extends CodeIssue +final class InvalidArrayAssignment extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 6; diff --git a/src/Psalm/Issue/InvalidArrayOffset.php b/src/Psalm/Issue/InvalidArrayOffset.php index a4a6e3f1c1e..982d300b954 100644 --- a/src/Psalm/Issue/InvalidArrayOffset.php +++ b/src/Psalm/Issue/InvalidArrayOffset.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidArrayOffset extends CodeIssue +final class InvalidArrayOffset extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 115; diff --git a/src/Psalm/Issue/InvalidAttribute.php b/src/Psalm/Issue/InvalidAttribute.php index 73587cfc2e8..e956af7aee5 100644 --- a/src/Psalm/Issue/InvalidAttribute.php +++ b/src/Psalm/Issue/InvalidAttribute.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidAttribute extends CodeIssue +final class InvalidAttribute extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 242; diff --git a/src/Psalm/Issue/InvalidCast.php b/src/Psalm/Issue/InvalidCast.php index 5c7f243e20c..ba485db1cb7 100644 --- a/src/Psalm/Issue/InvalidCast.php +++ b/src/Psalm/Issue/InvalidCast.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidCast extends CodeIssue +final class InvalidCast extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 103; diff --git a/src/Psalm/Issue/InvalidCatch.php b/src/Psalm/Issue/InvalidCatch.php index a62d446d957..98cc348f185 100644 --- a/src/Psalm/Issue/InvalidCatch.php +++ b/src/Psalm/Issue/InvalidCatch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidCatch extends ClassIssue +final class InvalidCatch extends ClassIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 132; diff --git a/src/Psalm/Issue/InvalidClass.php b/src/Psalm/Issue/InvalidClass.php index 319fc7f3959..58ca3f35738 100644 --- a/src/Psalm/Issue/InvalidClass.php +++ b/src/Psalm/Issue/InvalidClass.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidClass extends ClassIssue +final class InvalidClass extends ClassIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 7; diff --git a/src/Psalm/Issue/InvalidClone.php b/src/Psalm/Issue/InvalidClone.php index 983483a4dfc..0d23e418e19 100644 --- a/src/Psalm/Issue/InvalidClone.php +++ b/src/Psalm/Issue/InvalidClone.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidClone extends CodeIssue +final class InvalidClone extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 69; diff --git a/src/Psalm/Issue/InvalidConstantAssignmentValue.php b/src/Psalm/Issue/InvalidConstantAssignmentValue.php index a2c00a6d48e..d9f634fde9e 100644 --- a/src/Psalm/Issue/InvalidConstantAssignmentValue.php +++ b/src/Psalm/Issue/InvalidConstantAssignmentValue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidConstantAssignmentValue extends ClassConstantIssue +final class InvalidConstantAssignmentValue extends ClassConstantIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 304; diff --git a/src/Psalm/Issue/InvalidDocblock.php b/src/Psalm/Issue/InvalidDocblock.php index 51c08f5bbd8..d6188eeb86a 100644 --- a/src/Psalm/Issue/InvalidDocblock.php +++ b/src/Psalm/Issue/InvalidDocblock.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidDocblock extends CodeIssue +final class InvalidDocblock extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 8; diff --git a/src/Psalm/Issue/InvalidDocblockParamName.php b/src/Psalm/Issue/InvalidDocblockParamName.php index 30bf65b08f3..60e91e47153 100644 --- a/src/Psalm/Issue/InvalidDocblockParamName.php +++ b/src/Psalm/Issue/InvalidDocblockParamName.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidDocblockParamName extends CodeIssue +final class InvalidDocblockParamName extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 187; diff --git a/src/Psalm/Issue/InvalidEnumBackingType.php b/src/Psalm/Issue/InvalidEnumBackingType.php index 31853afd63a..4b63274bf39 100644 --- a/src/Psalm/Issue/InvalidEnumBackingType.php +++ b/src/Psalm/Issue/InvalidEnumBackingType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidEnumBackingType extends ClassIssue +final class InvalidEnumBackingType extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 276; diff --git a/src/Psalm/Issue/InvalidEnumCaseValue.php b/src/Psalm/Issue/InvalidEnumCaseValue.php index 0d21c69e484..2b2f773c83c 100644 --- a/src/Psalm/Issue/InvalidEnumCaseValue.php +++ b/src/Psalm/Issue/InvalidEnumCaseValue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidEnumCaseValue extends ClassIssue +final class InvalidEnumCaseValue extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 278; diff --git a/src/Psalm/Issue/InvalidExtendClass.php b/src/Psalm/Issue/InvalidExtendClass.php index 4407f5acbb7..7d406d143f7 100644 --- a/src/Psalm/Issue/InvalidExtendClass.php +++ b/src/Psalm/Issue/InvalidExtendClass.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidExtendClass extends ClassIssue +final class InvalidExtendClass extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 232; diff --git a/src/Psalm/Issue/InvalidFalsableReturnType.php b/src/Psalm/Issue/InvalidFalsableReturnType.php index 0b1094ef5a8..b44ca233b6c 100644 --- a/src/Psalm/Issue/InvalidFalsableReturnType.php +++ b/src/Psalm/Issue/InvalidFalsableReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidFalsableReturnType extends CodeIssue +final class InvalidFalsableReturnType extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 143; diff --git a/src/Psalm/Issue/InvalidFunctionCall.php b/src/Psalm/Issue/InvalidFunctionCall.php index 2af30784530..c67046f662e 100644 --- a/src/Psalm/Issue/InvalidFunctionCall.php +++ b/src/Psalm/Issue/InvalidFunctionCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidFunctionCall extends CodeIssue +final class InvalidFunctionCall extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 64; diff --git a/src/Psalm/Issue/InvalidGlobal.php b/src/Psalm/Issue/InvalidGlobal.php index 4cc76696fad..74f1446e58b 100644 --- a/src/Psalm/Issue/InvalidGlobal.php +++ b/src/Psalm/Issue/InvalidGlobal.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidGlobal extends CodeIssue +final class InvalidGlobal extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 46; diff --git a/src/Psalm/Issue/InvalidIterator.php b/src/Psalm/Issue/InvalidIterator.php index 0d3e3b32849..e9c669942a3 100644 --- a/src/Psalm/Issue/InvalidIterator.php +++ b/src/Psalm/Issue/InvalidIterator.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidIterator extends CodeIssue +final class InvalidIterator extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 9; diff --git a/src/Psalm/Issue/InvalidLiteralArgument.php b/src/Psalm/Issue/InvalidLiteralArgument.php index 4608a0727b0..4ad723978eb 100644 --- a/src/Psalm/Issue/InvalidLiteralArgument.php +++ b/src/Psalm/Issue/InvalidLiteralArgument.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidLiteralArgument extends ArgumentIssue +final class InvalidLiteralArgument extends ArgumentIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 237; diff --git a/src/Psalm/Issue/InvalidMethodCall.php b/src/Psalm/Issue/InvalidMethodCall.php index 8c3c804eef3..2f3e0321612 100644 --- a/src/Psalm/Issue/InvalidMethodCall.php +++ b/src/Psalm/Issue/InvalidMethodCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidMethodCall extends CodeIssue +final class InvalidMethodCall extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 91; diff --git a/src/Psalm/Issue/InvalidNamedArgument.php b/src/Psalm/Issue/InvalidNamedArgument.php index 23c01f7f150..08aa2b6a0f3 100644 --- a/src/Psalm/Issue/InvalidNamedArgument.php +++ b/src/Psalm/Issue/InvalidNamedArgument.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidNamedArgument extends ArgumentIssue +final class InvalidNamedArgument extends ArgumentIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 238; diff --git a/src/Psalm/Issue/InvalidNullableReturnType.php b/src/Psalm/Issue/InvalidNullableReturnType.php index 59741ba83c9..38f1a2d7399 100644 --- a/src/Psalm/Issue/InvalidNullableReturnType.php +++ b/src/Psalm/Issue/InvalidNullableReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidNullableReturnType extends CodeIssue +final class InvalidNullableReturnType extends CodeIssue { public const ERROR_LEVEL = 5; public const SHORTCODE = 144; diff --git a/src/Psalm/Issue/InvalidOperand.php b/src/Psalm/Issue/InvalidOperand.php index c30c1058f0e..ba17a9617f1 100644 --- a/src/Psalm/Issue/InvalidOperand.php +++ b/src/Psalm/Issue/InvalidOperand.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidOperand extends CodeIssue +final class InvalidOperand extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 58; diff --git a/src/Psalm/Issue/InvalidParamDefault.php b/src/Psalm/Issue/InvalidParamDefault.php index fe4757e962c..5d4867ac295 100644 --- a/src/Psalm/Issue/InvalidParamDefault.php +++ b/src/Psalm/Issue/InvalidParamDefault.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidParamDefault extends CodeIssue +final class InvalidParamDefault extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 62; diff --git a/src/Psalm/Issue/InvalidParent.php b/src/Psalm/Issue/InvalidParent.php index a4070a92b04..648d49b3234 100644 --- a/src/Psalm/Issue/InvalidParent.php +++ b/src/Psalm/Issue/InvalidParent.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidParent extends CodeIssue +final class InvalidParent extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 214; diff --git a/src/Psalm/Issue/InvalidPassByReference.php b/src/Psalm/Issue/InvalidPassByReference.php index 76d9e23ec69..bbd7a4bd46e 100644 --- a/src/Psalm/Issue/InvalidPassByReference.php +++ b/src/Psalm/Issue/InvalidPassByReference.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidPassByReference extends CodeIssue +final class InvalidPassByReference extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 102; diff --git a/src/Psalm/Issue/InvalidPropertyAssignment.php b/src/Psalm/Issue/InvalidPropertyAssignment.php index 7a3f5c49550..e63b32a8e97 100644 --- a/src/Psalm/Issue/InvalidPropertyAssignment.php +++ b/src/Psalm/Issue/InvalidPropertyAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidPropertyAssignment extends CodeIssue +final class InvalidPropertyAssignment extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 10; diff --git a/src/Psalm/Issue/InvalidPropertyAssignmentValue.php b/src/Psalm/Issue/InvalidPropertyAssignmentValue.php index 5b238d2c336..c826786ee90 100644 --- a/src/Psalm/Issue/InvalidPropertyAssignmentValue.php +++ b/src/Psalm/Issue/InvalidPropertyAssignmentValue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidPropertyAssignmentValue extends PropertyIssue +final class InvalidPropertyAssignmentValue extends PropertyIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 145; diff --git a/src/Psalm/Issue/InvalidPropertyFetch.php b/src/Psalm/Issue/InvalidPropertyFetch.php index 5fae19bd23d..891e9b50ea2 100644 --- a/src/Psalm/Issue/InvalidPropertyFetch.php +++ b/src/Psalm/Issue/InvalidPropertyFetch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidPropertyFetch extends CodeIssue +final class InvalidPropertyFetch extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 29; diff --git a/src/Psalm/Issue/InvalidReturnStatement.php b/src/Psalm/Issue/InvalidReturnStatement.php index c2e80d7ea71..3653c1c0186 100644 --- a/src/Psalm/Issue/InvalidReturnStatement.php +++ b/src/Psalm/Issue/InvalidReturnStatement.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidReturnStatement extends CodeIssue +final class InvalidReturnStatement extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 128; diff --git a/src/Psalm/Issue/InvalidReturnType.php b/src/Psalm/Issue/InvalidReturnType.php index 1d70d284356..015688107b7 100644 --- a/src/Psalm/Issue/InvalidReturnType.php +++ b/src/Psalm/Issue/InvalidReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidReturnType extends CodeIssue +final class InvalidReturnType extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 11; diff --git a/src/Psalm/Issue/InvalidScalarArgument.php b/src/Psalm/Issue/InvalidScalarArgument.php index 21742a6c0c9..060e660f53f 100644 --- a/src/Psalm/Issue/InvalidScalarArgument.php +++ b/src/Psalm/Issue/InvalidScalarArgument.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidScalarArgument extends ArgumentIssue +final class InvalidScalarArgument extends ArgumentIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 12; diff --git a/src/Psalm/Issue/InvalidScope.php b/src/Psalm/Issue/InvalidScope.php index a7502b35417..119bd520b82 100644 --- a/src/Psalm/Issue/InvalidScope.php +++ b/src/Psalm/Issue/InvalidScope.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidScope extends CodeIssue +final class InvalidScope extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 13; diff --git a/src/Psalm/Issue/InvalidStaticInvocation.php b/src/Psalm/Issue/InvalidStaticInvocation.php index b4f0ffb2570..0a142058df9 100644 --- a/src/Psalm/Issue/InvalidStaticInvocation.php +++ b/src/Psalm/Issue/InvalidStaticInvocation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidStaticInvocation extends CodeIssue +final class InvalidStaticInvocation extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 14; diff --git a/src/Psalm/Issue/InvalidStringClass.php b/src/Psalm/Issue/InvalidStringClass.php index 1d4576f2bca..89e3145c260 100644 --- a/src/Psalm/Issue/InvalidStringClass.php +++ b/src/Psalm/Issue/InvalidStringClass.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidStringClass extends CodeIssue +final class InvalidStringClass extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 160; diff --git a/src/Psalm/Issue/InvalidTemplateParam.php b/src/Psalm/Issue/InvalidTemplateParam.php index 6af20e968c3..72af6f66709 100644 --- a/src/Psalm/Issue/InvalidTemplateParam.php +++ b/src/Psalm/Issue/InvalidTemplateParam.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidTemplateParam extends CodeIssue +final class InvalidTemplateParam extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 183; diff --git a/src/Psalm/Issue/InvalidThrow.php b/src/Psalm/Issue/InvalidThrow.php index ea28744b69b..472e7cabba2 100644 --- a/src/Psalm/Issue/InvalidThrow.php +++ b/src/Psalm/Issue/InvalidThrow.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidThrow extends ClassIssue +final class InvalidThrow extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 133; diff --git a/src/Psalm/Issue/InvalidToString.php b/src/Psalm/Issue/InvalidToString.php index 4ced32e952c..57fbbd353a6 100644 --- a/src/Psalm/Issue/InvalidToString.php +++ b/src/Psalm/Issue/InvalidToString.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidToString extends CodeIssue +final class InvalidToString extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 55; diff --git a/src/Psalm/Issue/InvalidTraversableImplementation.php b/src/Psalm/Issue/InvalidTraversableImplementation.php index c07fd1266f2..f4cb9e88b7f 100644 --- a/src/Psalm/Issue/InvalidTraversableImplementation.php +++ b/src/Psalm/Issue/InvalidTraversableImplementation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidTraversableImplementation extends ClassIssue +final class InvalidTraversableImplementation extends ClassIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 266; diff --git a/src/Psalm/Issue/InvalidTypeImport.php b/src/Psalm/Issue/InvalidTypeImport.php index 5ee94d95f71..3c4ccb2feb0 100644 --- a/src/Psalm/Issue/InvalidTypeImport.php +++ b/src/Psalm/Issue/InvalidTypeImport.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class InvalidTypeImport extends CodeIssue +final class InvalidTypeImport extends CodeIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 233; diff --git a/src/Psalm/Issue/LessSpecificClassConstantType.php b/src/Psalm/Issue/LessSpecificClassConstantType.php index 4e5476f3e61..4d07f2c3a71 100644 --- a/src/Psalm/Issue/LessSpecificClassConstantType.php +++ b/src/Psalm/Issue/LessSpecificClassConstantType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class LessSpecificClassConstantType extends ClassConstantIssue +final class LessSpecificClassConstantType extends ClassConstantIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 307; diff --git a/src/Psalm/Issue/LessSpecificImplementedReturnType.php b/src/Psalm/Issue/LessSpecificImplementedReturnType.php index 90f60e510fc..484121cacd8 100644 --- a/src/Psalm/Issue/LessSpecificImplementedReturnType.php +++ b/src/Psalm/Issue/LessSpecificImplementedReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class LessSpecificImplementedReturnType extends CodeIssue +final class LessSpecificImplementedReturnType extends CodeIssue { public const ERROR_LEVEL = 5; public const SHORTCODE = 166; diff --git a/src/Psalm/Issue/LessSpecificReturnStatement.php b/src/Psalm/Issue/LessSpecificReturnStatement.php index c65a9e56880..26fe9a6921e 100644 --- a/src/Psalm/Issue/LessSpecificReturnStatement.php +++ b/src/Psalm/Issue/LessSpecificReturnStatement.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class LessSpecificReturnStatement extends CodeIssue +final class LessSpecificReturnStatement extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 129; diff --git a/src/Psalm/Issue/LessSpecificReturnType.php b/src/Psalm/Issue/LessSpecificReturnType.php index cade4bf9677..9a24771ab45 100644 --- a/src/Psalm/Issue/LessSpecificReturnType.php +++ b/src/Psalm/Issue/LessSpecificReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class LessSpecificReturnType extends CodeIssue +final class LessSpecificReturnType extends CodeIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 88; diff --git a/src/Psalm/Issue/LoopInvalidation.php b/src/Psalm/Issue/LoopInvalidation.php index 650fc355440..c250739407a 100644 --- a/src/Psalm/Issue/LoopInvalidation.php +++ b/src/Psalm/Issue/LoopInvalidation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class LoopInvalidation extends CodeIssue +final class LoopInvalidation extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 130; diff --git a/src/Psalm/Issue/MethodSignatureMismatch.php b/src/Psalm/Issue/MethodSignatureMismatch.php index 812353f8e63..d3ba51725e4 100644 --- a/src/Psalm/Issue/MethodSignatureMismatch.php +++ b/src/Psalm/Issue/MethodSignatureMismatch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MethodSignatureMismatch extends CodeIssue +final class MethodSignatureMismatch extends CodeIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 42; diff --git a/src/Psalm/Issue/MethodSignatureMustOmitReturnType.php b/src/Psalm/Issue/MethodSignatureMustOmitReturnType.php index bce1362d985..7fbc9023b3c 100644 --- a/src/Psalm/Issue/MethodSignatureMustOmitReturnType.php +++ b/src/Psalm/Issue/MethodSignatureMustOmitReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MethodSignatureMustOmitReturnType extends CodeIssue +final class MethodSignatureMustOmitReturnType extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 168; diff --git a/src/Psalm/Issue/MethodSignatureMustProvideReturnType.php b/src/Psalm/Issue/MethodSignatureMustProvideReturnType.php index ab05f06c0d4..7b227d2e581 100644 --- a/src/Psalm/Issue/MethodSignatureMustProvideReturnType.php +++ b/src/Psalm/Issue/MethodSignatureMustProvideReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MethodSignatureMustProvideReturnType extends CodeIssue +final class MethodSignatureMustProvideReturnType extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 282; diff --git a/src/Psalm/Issue/MismatchingDocblockParamType.php b/src/Psalm/Issue/MismatchingDocblockParamType.php index 703351665a6..4ec32d5473c 100644 --- a/src/Psalm/Issue/MismatchingDocblockParamType.php +++ b/src/Psalm/Issue/MismatchingDocblockParamType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MismatchingDocblockParamType extends CodeIssue +final class MismatchingDocblockParamType extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 141; diff --git a/src/Psalm/Issue/MismatchingDocblockPropertyType.php b/src/Psalm/Issue/MismatchingDocblockPropertyType.php index 392e0289c80..4ceba4f523b 100644 --- a/src/Psalm/Issue/MismatchingDocblockPropertyType.php +++ b/src/Psalm/Issue/MismatchingDocblockPropertyType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MismatchingDocblockPropertyType extends CodeIssue +final class MismatchingDocblockPropertyType extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 264; diff --git a/src/Psalm/Issue/MismatchingDocblockReturnType.php b/src/Psalm/Issue/MismatchingDocblockReturnType.php index ea6218c028a..f72dbd9fa22 100644 --- a/src/Psalm/Issue/MismatchingDocblockReturnType.php +++ b/src/Psalm/Issue/MismatchingDocblockReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MismatchingDocblockReturnType extends CodeIssue +final class MismatchingDocblockReturnType extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 142; diff --git a/src/Psalm/Issue/MissingClosureParamType.php b/src/Psalm/Issue/MissingClosureParamType.php index b0f2b0954dd..8ea94bfaef8 100644 --- a/src/Psalm/Issue/MissingClosureParamType.php +++ b/src/Psalm/Issue/MissingClosureParamType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MissingClosureParamType extends CodeIssue +final class MissingClosureParamType extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 153; diff --git a/src/Psalm/Issue/MissingClosureReturnType.php b/src/Psalm/Issue/MissingClosureReturnType.php index b3e25ae8512..83d77c8310d 100644 --- a/src/Psalm/Issue/MissingClosureReturnType.php +++ b/src/Psalm/Issue/MissingClosureReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MissingClosureReturnType extends CodeIssue +final class MissingClosureReturnType extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 68; diff --git a/src/Psalm/Issue/MissingConstructor.php b/src/Psalm/Issue/MissingConstructor.php index 6452982b431..247a7955651 100644 --- a/src/Psalm/Issue/MissingConstructor.php +++ b/src/Psalm/Issue/MissingConstructor.php @@ -4,7 +4,7 @@ use Psalm\CodeLocation; -class MissingConstructor extends CodeIssue +final class MissingConstructor extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 73; diff --git a/src/Psalm/Issue/MissingDependency.php b/src/Psalm/Issue/MissingDependency.php index 83afc874dd7..df0ab9f3fa7 100644 --- a/src/Psalm/Issue/MissingDependency.php +++ b/src/Psalm/Issue/MissingDependency.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MissingDependency extends ClassIssue +final class MissingDependency extends ClassIssue { public const SHORTCODE = 157; } diff --git a/src/Psalm/Issue/MissingDocblockType.php b/src/Psalm/Issue/MissingDocblockType.php index ffa8e8edcf6..816dcb37763 100644 --- a/src/Psalm/Issue/MissingDocblockType.php +++ b/src/Psalm/Issue/MissingDocblockType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MissingDocblockType extends CodeIssue +final class MissingDocblockType extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 110; diff --git a/src/Psalm/Issue/MissingFile.php b/src/Psalm/Issue/MissingFile.php index ede555c9a36..fa9fc85b316 100644 --- a/src/Psalm/Issue/MissingFile.php +++ b/src/Psalm/Issue/MissingFile.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MissingFile extends CodeIssue +final class MissingFile extends CodeIssue { public const SHORTCODE = 107; } diff --git a/src/Psalm/Issue/MissingImmutableAnnotation.php b/src/Psalm/Issue/MissingImmutableAnnotation.php index 5fed6917403..8b3665fe271 100644 --- a/src/Psalm/Issue/MissingImmutableAnnotation.php +++ b/src/Psalm/Issue/MissingImmutableAnnotation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MissingImmutableAnnotation extends CodeIssue +final class MissingImmutableAnnotation extends CodeIssue { public const SHORTCODE = 213; } diff --git a/src/Psalm/Issue/MissingParamType.php b/src/Psalm/Issue/MissingParamType.php index ba7816a313e..fe21138ee6f 100644 --- a/src/Psalm/Issue/MissingParamType.php +++ b/src/Psalm/Issue/MissingParamType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MissingParamType extends CodeIssue +final class MissingParamType extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 154; diff --git a/src/Psalm/Issue/MissingPropertyType.php b/src/Psalm/Issue/MissingPropertyType.php index 0bea29f5121..35bfbfc4502 100644 --- a/src/Psalm/Issue/MissingPropertyType.php +++ b/src/Psalm/Issue/MissingPropertyType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MissingPropertyType extends PropertyIssue +final class MissingPropertyType extends PropertyIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 45; diff --git a/src/Psalm/Issue/MissingReturnType.php b/src/Psalm/Issue/MissingReturnType.php index e9253f4d444..14a82877bdf 100644 --- a/src/Psalm/Issue/MissingReturnType.php +++ b/src/Psalm/Issue/MissingReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MissingReturnType extends CodeIssue +final class MissingReturnType extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 50; diff --git a/src/Psalm/Issue/MissingTemplateParam.php b/src/Psalm/Issue/MissingTemplateParam.php index a3e7b981279..544ab60547f 100644 --- a/src/Psalm/Issue/MissingTemplateParam.php +++ b/src/Psalm/Issue/MissingTemplateParam.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MissingTemplateParam extends CodeIssue +final class MissingTemplateParam extends CodeIssue { public const SHORTCODE = 182; } diff --git a/src/Psalm/Issue/MissingThrowsDocblock.php b/src/Psalm/Issue/MissingThrowsDocblock.php index 82e610bdd99..4a5862bf8f1 100644 --- a/src/Psalm/Issue/MissingThrowsDocblock.php +++ b/src/Psalm/Issue/MissingThrowsDocblock.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MissingThrowsDocblock extends CodeIssue +final class MissingThrowsDocblock extends CodeIssue { public const SHORTCODE = 169; } diff --git a/src/Psalm/Issue/MixedArgument.php b/src/Psalm/Issue/MixedArgument.php index 9422b692cda..115e3793c85 100644 --- a/src/Psalm/Issue/MixedArgument.php +++ b/src/Psalm/Issue/MixedArgument.php @@ -6,7 +6,7 @@ use function strtolower; -class MixedArgument extends ArgumentIssue implements MixedIssue +final class MixedArgument extends ArgumentIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 30; diff --git a/src/Psalm/Issue/MixedArgumentTypeCoercion.php b/src/Psalm/Issue/MixedArgumentTypeCoercion.php index 1d18ace7ba1..c9af86b0760 100644 --- a/src/Psalm/Issue/MixedArgumentTypeCoercion.php +++ b/src/Psalm/Issue/MixedArgumentTypeCoercion.php @@ -6,7 +6,7 @@ use function strtolower; -class MixedArgumentTypeCoercion extends ArgumentIssue implements MixedIssue +final class MixedArgumentTypeCoercion extends ArgumentIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 194; diff --git a/src/Psalm/Issue/MixedArrayAccess.php b/src/Psalm/Issue/MixedArrayAccess.php index 54dc6eab25e..bb827b7f841 100644 --- a/src/Psalm/Issue/MixedArrayAccess.php +++ b/src/Psalm/Issue/MixedArrayAccess.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedArrayAccess extends CodeIssue implements MixedIssue +final class MixedArrayAccess extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 51; diff --git a/src/Psalm/Issue/MixedArrayAssignment.php b/src/Psalm/Issue/MixedArrayAssignment.php index 7d046b169f9..14f073ea414 100644 --- a/src/Psalm/Issue/MixedArrayAssignment.php +++ b/src/Psalm/Issue/MixedArrayAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedArrayAssignment extends CodeIssue implements MixedIssue +final class MixedArrayAssignment extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 117; diff --git a/src/Psalm/Issue/MixedArrayOffset.php b/src/Psalm/Issue/MixedArrayOffset.php index ff53ea205a6..01e3321bff4 100644 --- a/src/Psalm/Issue/MixedArrayOffset.php +++ b/src/Psalm/Issue/MixedArrayOffset.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedArrayOffset extends CodeIssue implements MixedIssue +final class MixedArrayOffset extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 31; diff --git a/src/Psalm/Issue/MixedArrayTypeCoercion.php b/src/Psalm/Issue/MixedArrayTypeCoercion.php index 37d62fc4cb3..4bbdfdcf735 100644 --- a/src/Psalm/Issue/MixedArrayTypeCoercion.php +++ b/src/Psalm/Issue/MixedArrayTypeCoercion.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedArrayTypeCoercion extends CodeIssue implements MixedIssue +final class MixedArrayTypeCoercion extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 195; diff --git a/src/Psalm/Issue/MixedAssignment.php b/src/Psalm/Issue/MixedAssignment.php index 872cb2e0d15..27c3e054183 100644 --- a/src/Psalm/Issue/MixedAssignment.php +++ b/src/Psalm/Issue/MixedAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedAssignment extends CodeIssue implements MixedIssue +final class MixedAssignment extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 32; diff --git a/src/Psalm/Issue/MixedClone.php b/src/Psalm/Issue/MixedClone.php index 51215b26d8f..311ccbb7b6c 100644 --- a/src/Psalm/Issue/MixedClone.php +++ b/src/Psalm/Issue/MixedClone.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedClone extends CodeIssue implements MixedIssue +final class MixedClone extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 227; diff --git a/src/Psalm/Issue/MixedFunctionCall.php b/src/Psalm/Issue/MixedFunctionCall.php index 98b8888ce3d..586ace90647 100644 --- a/src/Psalm/Issue/MixedFunctionCall.php +++ b/src/Psalm/Issue/MixedFunctionCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedFunctionCall extends CodeIssue implements MixedIssue +final class MixedFunctionCall extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 185; diff --git a/src/Psalm/Issue/MixedInferredReturnType.php b/src/Psalm/Issue/MixedInferredReturnType.php index f8d2a3d5247..00c0370069f 100644 --- a/src/Psalm/Issue/MixedInferredReturnType.php +++ b/src/Psalm/Issue/MixedInferredReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedInferredReturnType extends CodeIssue implements MixedIssue +final class MixedInferredReturnType extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 47; diff --git a/src/Psalm/Issue/MixedMethodCall.php b/src/Psalm/Issue/MixedMethodCall.php index 7b8f97f37c5..939f787ef50 100644 --- a/src/Psalm/Issue/MixedMethodCall.php +++ b/src/Psalm/Issue/MixedMethodCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedMethodCall extends CodeIssue implements MixedIssue +final class MixedMethodCall extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 15; diff --git a/src/Psalm/Issue/MixedOperand.php b/src/Psalm/Issue/MixedOperand.php index 6dbe55ed459..08b2a8c1bf4 100644 --- a/src/Psalm/Issue/MixedOperand.php +++ b/src/Psalm/Issue/MixedOperand.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedOperand extends CodeIssue implements MixedIssue +final class MixedOperand extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 59; diff --git a/src/Psalm/Issue/MixedPropertyAssignment.php b/src/Psalm/Issue/MixedPropertyAssignment.php index c0e3ec7f2eb..453b3654f08 100644 --- a/src/Psalm/Issue/MixedPropertyAssignment.php +++ b/src/Psalm/Issue/MixedPropertyAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedPropertyAssignment extends CodeIssue implements MixedIssue +final class MixedPropertyAssignment extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 33; diff --git a/src/Psalm/Issue/MixedPropertyFetch.php b/src/Psalm/Issue/MixedPropertyFetch.php index 754494896f5..3976fc0e1ab 100644 --- a/src/Psalm/Issue/MixedPropertyFetch.php +++ b/src/Psalm/Issue/MixedPropertyFetch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedPropertyFetch extends CodeIssue implements MixedIssue +final class MixedPropertyFetch extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 34; diff --git a/src/Psalm/Issue/MixedPropertyTypeCoercion.php b/src/Psalm/Issue/MixedPropertyTypeCoercion.php index 56d884f8ad1..a33dc46b43e 100644 --- a/src/Psalm/Issue/MixedPropertyTypeCoercion.php +++ b/src/Psalm/Issue/MixedPropertyTypeCoercion.php @@ -4,7 +4,7 @@ use Psalm\CodeLocation; -class MixedPropertyTypeCoercion extends PropertyIssue implements MixedIssue +final class MixedPropertyTypeCoercion extends PropertyIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 196; diff --git a/src/Psalm/Issue/MixedReturnStatement.php b/src/Psalm/Issue/MixedReturnStatement.php index 7a699d4b304..758258911a9 100644 --- a/src/Psalm/Issue/MixedReturnStatement.php +++ b/src/Psalm/Issue/MixedReturnStatement.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedReturnStatement extends CodeIssue implements MixedIssue +final class MixedReturnStatement extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 138; diff --git a/src/Psalm/Issue/MixedReturnTypeCoercion.php b/src/Psalm/Issue/MixedReturnTypeCoercion.php index 7ef413fe3f0..4522e42f0bf 100644 --- a/src/Psalm/Issue/MixedReturnTypeCoercion.php +++ b/src/Psalm/Issue/MixedReturnTypeCoercion.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedReturnTypeCoercion extends CodeIssue implements MixedIssue +final class MixedReturnTypeCoercion extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 197; diff --git a/src/Psalm/Issue/MixedStringOffsetAssignment.php b/src/Psalm/Issue/MixedStringOffsetAssignment.php index ab0b7afd1ca..4629812f5a1 100644 --- a/src/Psalm/Issue/MixedStringOffsetAssignment.php +++ b/src/Psalm/Issue/MixedStringOffsetAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MixedStringOffsetAssignment extends CodeIssue implements MixedIssue +final class MixedStringOffsetAssignment extends CodeIssue implements MixedIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 35; diff --git a/src/Psalm/Issue/MoreSpecificImplementedParamType.php b/src/Psalm/Issue/MoreSpecificImplementedParamType.php index 1942b78ca6b..d020e3db9e5 100644 --- a/src/Psalm/Issue/MoreSpecificImplementedParamType.php +++ b/src/Psalm/Issue/MoreSpecificImplementedParamType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MoreSpecificImplementedParamType extends CodeIssue +final class MoreSpecificImplementedParamType extends CodeIssue { public const ERROR_LEVEL = 5; public const SHORTCODE = 140; diff --git a/src/Psalm/Issue/MoreSpecificReturnType.php b/src/Psalm/Issue/MoreSpecificReturnType.php index 725e648ae45..e129c14bf40 100644 --- a/src/Psalm/Issue/MoreSpecificReturnType.php +++ b/src/Psalm/Issue/MoreSpecificReturnType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MoreSpecificReturnType extends CodeIssue +final class MoreSpecificReturnType extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 70; diff --git a/src/Psalm/Issue/MutableDependency.php b/src/Psalm/Issue/MutableDependency.php index a76a4bee7c4..0aba524911f 100644 --- a/src/Psalm/Issue/MutableDependency.php +++ b/src/Psalm/Issue/MutableDependency.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class MutableDependency extends CodeIssue +final class MutableDependency extends CodeIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 222; diff --git a/src/Psalm/Issue/NamedArgumentNotAllowed.php b/src/Psalm/Issue/NamedArgumentNotAllowed.php index 56993676a87..96dc6b7d114 100644 --- a/src/Psalm/Issue/NamedArgumentNotAllowed.php +++ b/src/Psalm/Issue/NamedArgumentNotAllowed.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NamedArgumentNotAllowed extends ArgumentIssue +final class NamedArgumentNotAllowed extends ArgumentIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 268; diff --git a/src/Psalm/Issue/NoEnumProperties.php b/src/Psalm/Issue/NoEnumProperties.php index 825c654208b..efffbd5b24e 100644 --- a/src/Psalm/Issue/NoEnumProperties.php +++ b/src/Psalm/Issue/NoEnumProperties.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NoEnumProperties extends ClassIssue +final class NoEnumProperties extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 301; diff --git a/src/Psalm/Issue/NoInterfaceProperties.php b/src/Psalm/Issue/NoInterfaceProperties.php index d265817ca71..34d45f28bbd 100644 --- a/src/Psalm/Issue/NoInterfaceProperties.php +++ b/src/Psalm/Issue/NoInterfaceProperties.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NoInterfaceProperties extends ClassIssue +final class NoInterfaceProperties extends ClassIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 28; diff --git a/src/Psalm/Issue/NoValue.php b/src/Psalm/Issue/NoValue.php index fa92bac859a..15cfe4593c2 100644 --- a/src/Psalm/Issue/NoValue.php +++ b/src/Psalm/Issue/NoValue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NoValue extends CodeIssue +final class NoValue extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 179; diff --git a/src/Psalm/Issue/NonStaticSelfCall.php b/src/Psalm/Issue/NonStaticSelfCall.php index 11e9d39933c..d2599013e8d 100644 --- a/src/Psalm/Issue/NonStaticSelfCall.php +++ b/src/Psalm/Issue/NonStaticSelfCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NonStaticSelfCall extends CodeIssue +final class NonStaticSelfCall extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 63; diff --git a/src/Psalm/Issue/NullArgument.php b/src/Psalm/Issue/NullArgument.php index 65bc81bcfc6..3dd91c5a551 100644 --- a/src/Psalm/Issue/NullArgument.php +++ b/src/Psalm/Issue/NullArgument.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NullArgument extends ArgumentIssue +final class NullArgument extends ArgumentIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 57; diff --git a/src/Psalm/Issue/NullArrayAccess.php b/src/Psalm/Issue/NullArrayAccess.php index 6d9d2162538..26256d7cce2 100644 --- a/src/Psalm/Issue/NullArrayAccess.php +++ b/src/Psalm/Issue/NullArrayAccess.php @@ -6,7 +6,7 @@ * This is different from NullReference, as PHP throws a notice (vs the possibility of a fatal error with a null * reference) */ -class NullArrayAccess extends CodeIssue +final class NullArrayAccess extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 52; diff --git a/src/Psalm/Issue/NullArrayOffset.php b/src/Psalm/Issue/NullArrayOffset.php index d4527a50c34..fd4b1dd1062 100644 --- a/src/Psalm/Issue/NullArrayOffset.php +++ b/src/Psalm/Issue/NullArrayOffset.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NullArrayOffset extends CodeIssue +final class NullArrayOffset extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 124; diff --git a/src/Psalm/Issue/NullFunctionCall.php b/src/Psalm/Issue/NullFunctionCall.php index ccc0a555231..8a2aa500213 100644 --- a/src/Psalm/Issue/NullFunctionCall.php +++ b/src/Psalm/Issue/NullFunctionCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NullFunctionCall extends CodeIssue +final class NullFunctionCall extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 93; diff --git a/src/Psalm/Issue/NullIterator.php b/src/Psalm/Issue/NullIterator.php index 8d26e75653b..44c6cdcee5f 100644 --- a/src/Psalm/Issue/NullIterator.php +++ b/src/Psalm/Issue/NullIterator.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NullIterator extends CodeIssue +final class NullIterator extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 96; diff --git a/src/Psalm/Issue/NullOperand.php b/src/Psalm/Issue/NullOperand.php index bb063d63e7d..4c5006663ab 100644 --- a/src/Psalm/Issue/NullOperand.php +++ b/src/Psalm/Issue/NullOperand.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NullOperand extends CodeIssue +final class NullOperand extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 61; diff --git a/src/Psalm/Issue/NullPropertyAssignment.php b/src/Psalm/Issue/NullPropertyAssignment.php index a1ed010f952..9c0352118ed 100644 --- a/src/Psalm/Issue/NullPropertyAssignment.php +++ b/src/Psalm/Issue/NullPropertyAssignment.php @@ -6,7 +6,7 @@ * This is different from NullReference, as PHP throws a notice (vs the possibility of a fatal error with a null * reference) */ -class NullPropertyAssignment extends CodeIssue +final class NullPropertyAssignment extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 36; diff --git a/src/Psalm/Issue/NullPropertyFetch.php b/src/Psalm/Issue/NullPropertyFetch.php index bd1d53b2c79..e143a7e84d3 100644 --- a/src/Psalm/Issue/NullPropertyFetch.php +++ b/src/Psalm/Issue/NullPropertyFetch.php @@ -6,7 +6,7 @@ * This is different from NullReference, as PHP throws a notice (vs the possibility of a fatal error with a null * reference) */ -class NullPropertyFetch extends CodeIssue +final class NullPropertyFetch extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 27; diff --git a/src/Psalm/Issue/NullReference.php b/src/Psalm/Issue/NullReference.php index c3fafb25dcb..2227df379d1 100644 --- a/src/Psalm/Issue/NullReference.php +++ b/src/Psalm/Issue/NullReference.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NullReference extends CodeIssue +final class NullReference extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 16; diff --git a/src/Psalm/Issue/NullableReturnStatement.php b/src/Psalm/Issue/NullableReturnStatement.php index 741428b2da4..9bed9d9413b 100644 --- a/src/Psalm/Issue/NullableReturnStatement.php +++ b/src/Psalm/Issue/NullableReturnStatement.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class NullableReturnStatement extends CodeIssue +final class NullableReturnStatement extends CodeIssue { public const ERROR_LEVEL = 5; public const SHORTCODE = 139; diff --git a/src/Psalm/Issue/OverriddenInterfaceConstant.php b/src/Psalm/Issue/OverriddenInterfaceConstant.php index 4065660aa42..364289610a9 100644 --- a/src/Psalm/Issue/OverriddenInterfaceConstant.php +++ b/src/Psalm/Issue/OverriddenInterfaceConstant.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class OverriddenInterfaceConstant extends ClassConstantIssue +final class OverriddenInterfaceConstant extends ClassConstantIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 306; diff --git a/src/Psalm/Issue/OverriddenMethodAccess.php b/src/Psalm/Issue/OverriddenMethodAccess.php index 0e97bde0d16..04deacddcaf 100644 --- a/src/Psalm/Issue/OverriddenMethodAccess.php +++ b/src/Psalm/Issue/OverriddenMethodAccess.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class OverriddenMethodAccess extends CodeIssue +final class OverriddenMethodAccess extends CodeIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 66; diff --git a/src/Psalm/Issue/OverriddenPropertyAccess.php b/src/Psalm/Issue/OverriddenPropertyAccess.php index 91fa075693f..6abd1331933 100644 --- a/src/Psalm/Issue/OverriddenPropertyAccess.php +++ b/src/Psalm/Issue/OverriddenPropertyAccess.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class OverriddenPropertyAccess extends CodeIssue +final class OverriddenPropertyAccess extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 159; diff --git a/src/Psalm/Issue/ParadoxicalCondition.php b/src/Psalm/Issue/ParadoxicalCondition.php index 0f3dd8dabe4..90fa64e4468 100644 --- a/src/Psalm/Issue/ParadoxicalCondition.php +++ b/src/Psalm/Issue/ParadoxicalCondition.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ParadoxicalCondition extends CodeIssue +final class ParadoxicalCondition extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 89; diff --git a/src/Psalm/Issue/ParamNameMismatch.php b/src/Psalm/Issue/ParamNameMismatch.php index b7e9b6762fd..60d017c1d66 100644 --- a/src/Psalm/Issue/ParamNameMismatch.php +++ b/src/Psalm/Issue/ParamNameMismatch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ParamNameMismatch extends CodeIssue +final class ParamNameMismatch extends CodeIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 230; diff --git a/src/Psalm/Issue/ParentNotFound.php b/src/Psalm/Issue/ParentNotFound.php index 79b0f5b7ee7..1e35ad2712a 100644 --- a/src/Psalm/Issue/ParentNotFound.php +++ b/src/Psalm/Issue/ParentNotFound.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ParentNotFound extends CodeIssue +final class ParentNotFound extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 17; diff --git a/src/Psalm/Issue/ParseError.php b/src/Psalm/Issue/ParseError.php index 928e0d88fa1..12563e83c1a 100644 --- a/src/Psalm/Issue/ParseError.php +++ b/src/Psalm/Issue/ParseError.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ParseError extends CodeIssue +final class ParseError extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 173; diff --git a/src/Psalm/Issue/PossibleRawObjectIteration.php b/src/Psalm/Issue/PossibleRawObjectIteration.php index b47e9945633..02abc62f260 100644 --- a/src/Psalm/Issue/PossibleRawObjectIteration.php +++ b/src/Psalm/Issue/PossibleRawObjectIteration.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossibleRawObjectIteration extends CodeIssue +final class PossibleRawObjectIteration extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 208; diff --git a/src/Psalm/Issue/PossiblyFalseArgument.php b/src/Psalm/Issue/PossiblyFalseArgument.php index e3bc78b8c05..bff4f61eb83 100644 --- a/src/Psalm/Issue/PossiblyFalseArgument.php +++ b/src/Psalm/Issue/PossiblyFalseArgument.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyFalseArgument extends ArgumentIssue +final class PossiblyFalseArgument extends ArgumentIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 104; diff --git a/src/Psalm/Issue/PossiblyFalseIterator.php b/src/Psalm/Issue/PossiblyFalseIterator.php index 324d823a51e..6a4964da347 100644 --- a/src/Psalm/Issue/PossiblyFalseIterator.php +++ b/src/Psalm/Issue/PossiblyFalseIterator.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyFalseIterator extends CodeIssue +final class PossiblyFalseIterator extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 164; diff --git a/src/Psalm/Issue/PossiblyFalseOperand.php b/src/Psalm/Issue/PossiblyFalseOperand.php index 36a63dbca48..48faad6ff1a 100644 --- a/src/Psalm/Issue/PossiblyFalseOperand.php +++ b/src/Psalm/Issue/PossiblyFalseOperand.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyFalseOperand extends CodeIssue +final class PossiblyFalseOperand extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 162; diff --git a/src/Psalm/Issue/PossiblyFalsePropertyAssignmentValue.php b/src/Psalm/Issue/PossiblyFalsePropertyAssignmentValue.php index 32ad0df3113..fcdf632306c 100644 --- a/src/Psalm/Issue/PossiblyFalsePropertyAssignmentValue.php +++ b/src/Psalm/Issue/PossiblyFalsePropertyAssignmentValue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyFalsePropertyAssignmentValue extends PropertyIssue +final class PossiblyFalsePropertyAssignmentValue extends PropertyIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 146; diff --git a/src/Psalm/Issue/PossiblyFalseReference.php b/src/Psalm/Issue/PossiblyFalseReference.php index 7549348c728..80c073b5b12 100644 --- a/src/Psalm/Issue/PossiblyFalseReference.php +++ b/src/Psalm/Issue/PossiblyFalseReference.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyFalseReference extends CodeIssue +final class PossiblyFalseReference extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 105; diff --git a/src/Psalm/Issue/PossiblyInvalidArgument.php b/src/Psalm/Issue/PossiblyInvalidArgument.php index 197dc9f5d61..1b25acea604 100644 --- a/src/Psalm/Issue/PossiblyInvalidArgument.php +++ b/src/Psalm/Issue/PossiblyInvalidArgument.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidArgument extends ArgumentIssue +final class PossiblyInvalidArgument extends ArgumentIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 92; diff --git a/src/Psalm/Issue/PossiblyInvalidArrayAccess.php b/src/Psalm/Issue/PossiblyInvalidArrayAccess.php index 856570c8693..13373db7842 100644 --- a/src/Psalm/Issue/PossiblyInvalidArrayAccess.php +++ b/src/Psalm/Issue/PossiblyInvalidArrayAccess.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidArrayAccess extends CodeIssue +final class PossiblyInvalidArrayAccess extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 109; diff --git a/src/Psalm/Issue/PossiblyInvalidArrayAssignment.php b/src/Psalm/Issue/PossiblyInvalidArrayAssignment.php index d92eeefe139..9426fb0773b 100644 --- a/src/Psalm/Issue/PossiblyInvalidArrayAssignment.php +++ b/src/Psalm/Issue/PossiblyInvalidArrayAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidArrayAssignment extends CodeIssue +final class PossiblyInvalidArrayAssignment extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 118; diff --git a/src/Psalm/Issue/PossiblyInvalidArrayOffset.php b/src/Psalm/Issue/PossiblyInvalidArrayOffset.php index 242b62ee68e..f8e3d6416f7 100644 --- a/src/Psalm/Issue/PossiblyInvalidArrayOffset.php +++ b/src/Psalm/Issue/PossiblyInvalidArrayOffset.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidArrayOffset extends CodeIssue +final class PossiblyInvalidArrayOffset extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 116; diff --git a/src/Psalm/Issue/PossiblyInvalidCast.php b/src/Psalm/Issue/PossiblyInvalidCast.php index fb96bcfacd4..d1a38cb21cc 100644 --- a/src/Psalm/Issue/PossiblyInvalidCast.php +++ b/src/Psalm/Issue/PossiblyInvalidCast.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidCast extends CodeIssue +final class PossiblyInvalidCast extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 190; diff --git a/src/Psalm/Issue/PossiblyInvalidClone.php b/src/Psalm/Issue/PossiblyInvalidClone.php index ce0d9ba8888..0a34139e60a 100644 --- a/src/Psalm/Issue/PossiblyInvalidClone.php +++ b/src/Psalm/Issue/PossiblyInvalidClone.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidClone extends CodeIssue +final class PossiblyInvalidClone extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 226; diff --git a/src/Psalm/Issue/PossiblyInvalidDocblockTag.php b/src/Psalm/Issue/PossiblyInvalidDocblockTag.php index 6632167941a..72dd9a36b0b 100644 --- a/src/Psalm/Issue/PossiblyInvalidDocblockTag.php +++ b/src/Psalm/Issue/PossiblyInvalidDocblockTag.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidDocblockTag extends CodeIssue +final class PossiblyInvalidDocblockTag extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 270; diff --git a/src/Psalm/Issue/PossiblyInvalidFunctionCall.php b/src/Psalm/Issue/PossiblyInvalidFunctionCall.php index e790351c575..9ee71fe751c 100644 --- a/src/Psalm/Issue/PossiblyInvalidFunctionCall.php +++ b/src/Psalm/Issue/PossiblyInvalidFunctionCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidFunctionCall extends CodeIssue +final class PossiblyInvalidFunctionCall extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 136; diff --git a/src/Psalm/Issue/PossiblyInvalidIterator.php b/src/Psalm/Issue/PossiblyInvalidIterator.php index ec41f998c9c..51c9973bc4c 100644 --- a/src/Psalm/Issue/PossiblyInvalidIterator.php +++ b/src/Psalm/Issue/PossiblyInvalidIterator.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidIterator extends CodeIssue +final class PossiblyInvalidIterator extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 165; diff --git a/src/Psalm/Issue/PossiblyInvalidMethodCall.php b/src/Psalm/Issue/PossiblyInvalidMethodCall.php index b146605233a..0ba73755d14 100644 --- a/src/Psalm/Issue/PossiblyInvalidMethodCall.php +++ b/src/Psalm/Issue/PossiblyInvalidMethodCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidMethodCall extends CodeIssue +final class PossiblyInvalidMethodCall extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 113; diff --git a/src/Psalm/Issue/PossiblyInvalidOperand.php b/src/Psalm/Issue/PossiblyInvalidOperand.php index 8befba3fdf6..217b5065c48 100644 --- a/src/Psalm/Issue/PossiblyInvalidOperand.php +++ b/src/Psalm/Issue/PossiblyInvalidOperand.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidOperand extends CodeIssue +final class PossiblyInvalidOperand extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 163; diff --git a/src/Psalm/Issue/PossiblyInvalidPropertyAssignment.php b/src/Psalm/Issue/PossiblyInvalidPropertyAssignment.php index fc4d2476510..73bb99ff6ef 100644 --- a/src/Psalm/Issue/PossiblyInvalidPropertyAssignment.php +++ b/src/Psalm/Issue/PossiblyInvalidPropertyAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidPropertyAssignment extends CodeIssue +final class PossiblyInvalidPropertyAssignment extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 112; diff --git a/src/Psalm/Issue/PossiblyInvalidPropertyAssignmentValue.php b/src/Psalm/Issue/PossiblyInvalidPropertyAssignmentValue.php index c78ee9f90fa..e1b270a9160 100644 --- a/src/Psalm/Issue/PossiblyInvalidPropertyAssignmentValue.php +++ b/src/Psalm/Issue/PossiblyInvalidPropertyAssignmentValue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidPropertyAssignmentValue extends PropertyIssue +final class PossiblyInvalidPropertyAssignmentValue extends PropertyIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 147; diff --git a/src/Psalm/Issue/PossiblyInvalidPropertyFetch.php b/src/Psalm/Issue/PossiblyInvalidPropertyFetch.php index 54c29002dab..43efb752f6a 100644 --- a/src/Psalm/Issue/PossiblyInvalidPropertyFetch.php +++ b/src/Psalm/Issue/PossiblyInvalidPropertyFetch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyInvalidPropertyFetch extends CodeIssue +final class PossiblyInvalidPropertyFetch extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 114; diff --git a/src/Psalm/Issue/PossiblyNullArgument.php b/src/Psalm/Issue/PossiblyNullArgument.php index 8d367f9ffdb..b09edcf1c16 100644 --- a/src/Psalm/Issue/PossiblyNullArgument.php +++ b/src/Psalm/Issue/PossiblyNullArgument.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyNullArgument extends ArgumentIssue +final class PossiblyNullArgument extends ArgumentIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 78; diff --git a/src/Psalm/Issue/PossiblyNullArrayAccess.php b/src/Psalm/Issue/PossiblyNullArrayAccess.php index 7d9481d78a0..797629ee853 100644 --- a/src/Psalm/Issue/PossiblyNullArrayAccess.php +++ b/src/Psalm/Issue/PossiblyNullArrayAccess.php @@ -6,7 +6,7 @@ * This is different from PossiblyNullReference, as PHP throws a notice (vs the possibility of a fatal error with a null * reference) */ -class PossiblyNullArrayAccess extends CodeIssue +final class PossiblyNullArrayAccess extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 79; diff --git a/src/Psalm/Issue/PossiblyNullArrayAssignment.php b/src/Psalm/Issue/PossiblyNullArrayAssignment.php index c32cc3b41ac..fc93e7d66ea 100644 --- a/src/Psalm/Issue/PossiblyNullArrayAssignment.php +++ b/src/Psalm/Issue/PossiblyNullArrayAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyNullArrayAssignment extends CodeIssue +final class PossiblyNullArrayAssignment extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 120; diff --git a/src/Psalm/Issue/PossiblyNullArrayOffset.php b/src/Psalm/Issue/PossiblyNullArrayOffset.php index c32613accdf..b430d677e19 100644 --- a/src/Psalm/Issue/PossiblyNullArrayOffset.php +++ b/src/Psalm/Issue/PossiblyNullArrayOffset.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyNullArrayOffset extends CodeIssue +final class PossiblyNullArrayOffset extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 125; diff --git a/src/Psalm/Issue/PossiblyNullFunctionCall.php b/src/Psalm/Issue/PossiblyNullFunctionCall.php index 2ec3485089b..7bf393bc29c 100644 --- a/src/Psalm/Issue/PossiblyNullFunctionCall.php +++ b/src/Psalm/Issue/PossiblyNullFunctionCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyNullFunctionCall extends CodeIssue +final class PossiblyNullFunctionCall extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 94; diff --git a/src/Psalm/Issue/PossiblyNullIterator.php b/src/Psalm/Issue/PossiblyNullIterator.php index ac3ec4c7bca..38bde552a7c 100644 --- a/src/Psalm/Issue/PossiblyNullIterator.php +++ b/src/Psalm/Issue/PossiblyNullIterator.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyNullIterator extends CodeIssue +final class PossiblyNullIterator extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 97; diff --git a/src/Psalm/Issue/PossiblyNullOperand.php b/src/Psalm/Issue/PossiblyNullOperand.php index d575e2e4bc7..165dfbbef77 100644 --- a/src/Psalm/Issue/PossiblyNullOperand.php +++ b/src/Psalm/Issue/PossiblyNullOperand.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyNullOperand extends CodeIssue +final class PossiblyNullOperand extends CodeIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 80; diff --git a/src/Psalm/Issue/PossiblyNullPropertyAssignment.php b/src/Psalm/Issue/PossiblyNullPropertyAssignment.php index a026fea0bab..2cff45ced61 100644 --- a/src/Psalm/Issue/PossiblyNullPropertyAssignment.php +++ b/src/Psalm/Issue/PossiblyNullPropertyAssignment.php @@ -6,7 +6,7 @@ * This is different from PossiblyNullReference, as PHP throws a notice (vs the possibility of a fatal error with a null * reference) */ -class PossiblyNullPropertyAssignment extends CodeIssue +final class PossiblyNullPropertyAssignment extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 81; diff --git a/src/Psalm/Issue/PossiblyNullPropertyAssignmentValue.php b/src/Psalm/Issue/PossiblyNullPropertyAssignmentValue.php index d1b117bf1c8..3f31dadc745 100644 --- a/src/Psalm/Issue/PossiblyNullPropertyAssignmentValue.php +++ b/src/Psalm/Issue/PossiblyNullPropertyAssignmentValue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyNullPropertyAssignmentValue extends PropertyIssue +final class PossiblyNullPropertyAssignmentValue extends PropertyIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 148; diff --git a/src/Psalm/Issue/PossiblyNullPropertyFetch.php b/src/Psalm/Issue/PossiblyNullPropertyFetch.php index 59a3ba20fb9..a13fa3e18c3 100644 --- a/src/Psalm/Issue/PossiblyNullPropertyFetch.php +++ b/src/Psalm/Issue/PossiblyNullPropertyFetch.php @@ -6,7 +6,7 @@ * This is different from PossiblyNullReference, as PHP throws a notice (vs the possibility of a fatal error with a null * reference) */ -class PossiblyNullPropertyFetch extends CodeIssue +final class PossiblyNullPropertyFetch extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 82; diff --git a/src/Psalm/Issue/PossiblyNullReference.php b/src/Psalm/Issue/PossiblyNullReference.php index ab6c55e7fdf..b104a55ee7d 100644 --- a/src/Psalm/Issue/PossiblyNullReference.php +++ b/src/Psalm/Issue/PossiblyNullReference.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyNullReference extends CodeIssue +final class PossiblyNullReference extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 83; diff --git a/src/Psalm/Issue/PossiblyUndefinedArrayOffset.php b/src/Psalm/Issue/PossiblyUndefinedArrayOffset.php index 5a6dd606d1d..c79ed1d48b0 100644 --- a/src/Psalm/Issue/PossiblyUndefinedArrayOffset.php +++ b/src/Psalm/Issue/PossiblyUndefinedArrayOffset.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyUndefinedArrayOffset extends CodeIssue +final class PossiblyUndefinedArrayOffset extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 167; diff --git a/src/Psalm/Issue/PossiblyUndefinedGlobalVariable.php b/src/Psalm/Issue/PossiblyUndefinedGlobalVariable.php index 925a71246d3..98f953e6672 100644 --- a/src/Psalm/Issue/PossiblyUndefinedGlobalVariable.php +++ b/src/Psalm/Issue/PossiblyUndefinedGlobalVariable.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyUndefinedGlobalVariable extends VariableIssue +final class PossiblyUndefinedGlobalVariable extends VariableIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 126; diff --git a/src/Psalm/Issue/PossiblyUndefinedIntArrayOffset.php b/src/Psalm/Issue/PossiblyUndefinedIntArrayOffset.php index f83b3c6204f..a84418f10e5 100644 --- a/src/Psalm/Issue/PossiblyUndefinedIntArrayOffset.php +++ b/src/Psalm/Issue/PossiblyUndefinedIntArrayOffset.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyUndefinedIntArrayOffset extends CodeIssue +final class PossiblyUndefinedIntArrayOffset extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 215; diff --git a/src/Psalm/Issue/PossiblyUndefinedMethod.php b/src/Psalm/Issue/PossiblyUndefinedMethod.php index 15c78fd07f3..f3e60db0563 100644 --- a/src/Psalm/Issue/PossiblyUndefinedMethod.php +++ b/src/Psalm/Issue/PossiblyUndefinedMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyUndefinedMethod extends MethodIssue +final class PossiblyUndefinedMethod extends MethodIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 108; diff --git a/src/Psalm/Issue/PossiblyUndefinedStringArrayOffset.php b/src/Psalm/Issue/PossiblyUndefinedStringArrayOffset.php index aa8192d524a..0e49dfd1c81 100644 --- a/src/Psalm/Issue/PossiblyUndefinedStringArrayOffset.php +++ b/src/Psalm/Issue/PossiblyUndefinedStringArrayOffset.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyUndefinedStringArrayOffset extends CodeIssue +final class PossiblyUndefinedStringArrayOffset extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 216; diff --git a/src/Psalm/Issue/PossiblyUndefinedVariable.php b/src/Psalm/Issue/PossiblyUndefinedVariable.php index c140f3615dc..325a0a1cc91 100644 --- a/src/Psalm/Issue/PossiblyUndefinedVariable.php +++ b/src/Psalm/Issue/PossiblyUndefinedVariable.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyUndefinedVariable extends CodeIssue +final class PossiblyUndefinedVariable extends CodeIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 18; diff --git a/src/Psalm/Issue/PossiblyUnusedMethod.php b/src/Psalm/Issue/PossiblyUnusedMethod.php index 40bf48e8190..17d5b07e750 100644 --- a/src/Psalm/Issue/PossiblyUnusedMethod.php +++ b/src/Psalm/Issue/PossiblyUnusedMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyUnusedMethod extends MethodIssue +final class PossiblyUnusedMethod extends MethodIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 87; diff --git a/src/Psalm/Issue/PossiblyUnusedParam.php b/src/Psalm/Issue/PossiblyUnusedParam.php index 0129acc9e10..253af21166a 100644 --- a/src/Psalm/Issue/PossiblyUnusedParam.php +++ b/src/Psalm/Issue/PossiblyUnusedParam.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyUnusedParam extends CodeIssue +final class PossiblyUnusedParam extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 134; diff --git a/src/Psalm/Issue/PossiblyUnusedProperty.php b/src/Psalm/Issue/PossiblyUnusedProperty.php index f8761128db2..08562534465 100644 --- a/src/Psalm/Issue/PossiblyUnusedProperty.php +++ b/src/Psalm/Issue/PossiblyUnusedProperty.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyUnusedProperty extends CodeIssue +final class PossiblyUnusedProperty extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 149; diff --git a/src/Psalm/Issue/PossiblyUnusedReturnValue.php b/src/Psalm/Issue/PossiblyUnusedReturnValue.php index 3f8a74a32a3..975b3f9a228 100644 --- a/src/Psalm/Issue/PossiblyUnusedReturnValue.php +++ b/src/Psalm/Issue/PossiblyUnusedReturnValue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PossiblyUnusedReturnValue extends CodeIssue +final class PossiblyUnusedReturnValue extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 273; diff --git a/src/Psalm/Issue/PropertyNotSetInConstructor.php b/src/Psalm/Issue/PropertyNotSetInConstructor.php index 85602e6f307..187a48f9347 100644 --- a/src/Psalm/Issue/PropertyNotSetInConstructor.php +++ b/src/Psalm/Issue/PropertyNotSetInConstructor.php @@ -4,7 +4,7 @@ use Psalm\CodeLocation; -class PropertyNotSetInConstructor extends PropertyIssue +final class PropertyNotSetInConstructor extends PropertyIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 74; diff --git a/src/Psalm/Issue/PropertyTypeCoercion.php b/src/Psalm/Issue/PropertyTypeCoercion.php index c15e00a8e18..457dd52ba38 100644 --- a/src/Psalm/Issue/PropertyTypeCoercion.php +++ b/src/Psalm/Issue/PropertyTypeCoercion.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PropertyTypeCoercion extends PropertyIssue +final class PropertyTypeCoercion extends PropertyIssue { public const ERROR_LEVEL = 3; public const SHORTCODE = 198; diff --git a/src/Psalm/Issue/PsalmInternalError.php b/src/Psalm/Issue/PsalmInternalError.php index 42c003d3062..a88b21acae2 100644 --- a/src/Psalm/Issue/PsalmInternalError.php +++ b/src/Psalm/Issue/PsalmInternalError.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class PsalmInternalError extends CodeIssue +final class PsalmInternalError extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 177; diff --git a/src/Psalm/Issue/RawObjectIteration.php b/src/Psalm/Issue/RawObjectIteration.php index 4289be8bd0e..7d377392523 100644 --- a/src/Psalm/Issue/RawObjectIteration.php +++ b/src/Psalm/Issue/RawObjectIteration.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class RawObjectIteration extends CodeIssue +final class RawObjectIteration extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 111; diff --git a/src/Psalm/Issue/RedundantCast.php b/src/Psalm/Issue/RedundantCast.php index 915d10a72c7..ae2f5cd892b 100644 --- a/src/Psalm/Issue/RedundantCast.php +++ b/src/Psalm/Issue/RedundantCast.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class RedundantCast extends CodeIssue +final class RedundantCast extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 262; diff --git a/src/Psalm/Issue/RedundantCastGivenDocblockType.php b/src/Psalm/Issue/RedundantCastGivenDocblockType.php index 501ac9c5016..b0c1d79256e 100644 --- a/src/Psalm/Issue/RedundantCastGivenDocblockType.php +++ b/src/Psalm/Issue/RedundantCastGivenDocblockType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class RedundantCastGivenDocblockType extends CodeIssue +final class RedundantCastGivenDocblockType extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 263; diff --git a/src/Psalm/Issue/RedundantCondition.php b/src/Psalm/Issue/RedundantCondition.php index abb4df48d2d..bf6b27f4723 100644 --- a/src/Psalm/Issue/RedundantCondition.php +++ b/src/Psalm/Issue/RedundantCondition.php @@ -4,7 +4,7 @@ use Psalm\CodeLocation; -class RedundantCondition extends CodeIssue +final class RedundantCondition extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 122; diff --git a/src/Psalm/Issue/RedundantConditionGivenDocblockType.php b/src/Psalm/Issue/RedundantConditionGivenDocblockType.php index a60adf6e95b..f1fbd9a8ac7 100644 --- a/src/Psalm/Issue/RedundantConditionGivenDocblockType.php +++ b/src/Psalm/Issue/RedundantConditionGivenDocblockType.php @@ -4,7 +4,7 @@ use Psalm\CodeLocation; -class RedundantConditionGivenDocblockType extends CodeIssue +final class RedundantConditionGivenDocblockType extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 156; diff --git a/src/Psalm/Issue/RedundantFunctionCall.php b/src/Psalm/Issue/RedundantFunctionCall.php index d84d0a4f826..4c1e2037491 100644 --- a/src/Psalm/Issue/RedundantFunctionCall.php +++ b/src/Psalm/Issue/RedundantFunctionCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class RedundantFunctionCall extends CodeIssue +final class RedundantFunctionCall extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 280; diff --git a/src/Psalm/Issue/RedundantFunctionCallGivenDocblockType.php b/src/Psalm/Issue/RedundantFunctionCallGivenDocblockType.php index 659679c5d63..5fa343bdd5a 100644 --- a/src/Psalm/Issue/RedundantFunctionCallGivenDocblockType.php +++ b/src/Psalm/Issue/RedundantFunctionCallGivenDocblockType.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class RedundantFunctionCallGivenDocblockType extends CodeIssue +final class RedundantFunctionCallGivenDocblockType extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 281; diff --git a/src/Psalm/Issue/RedundantIdentityWithTrue.php b/src/Psalm/Issue/RedundantIdentityWithTrue.php index a84188a0026..c15398e2a70 100644 --- a/src/Psalm/Issue/RedundantIdentityWithTrue.php +++ b/src/Psalm/Issue/RedundantIdentityWithTrue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class RedundantIdentityWithTrue extends CodeIssue +final class RedundantIdentityWithTrue extends CodeIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 228; diff --git a/src/Psalm/Issue/RedundantPropertyInitializationCheck.php b/src/Psalm/Issue/RedundantPropertyInitializationCheck.php index 26bdf4b36b2..5a450bbe09c 100644 --- a/src/Psalm/Issue/RedundantPropertyInitializationCheck.php +++ b/src/Psalm/Issue/RedundantPropertyInitializationCheck.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class RedundantPropertyInitializationCheck extends CodeIssue +final class RedundantPropertyInitializationCheck extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 261; diff --git a/src/Psalm/Issue/ReferenceConstraintViolation.php b/src/Psalm/Issue/ReferenceConstraintViolation.php index 108ebdd38d3..88e9832cf6d 100644 --- a/src/Psalm/Issue/ReferenceConstraintViolation.php +++ b/src/Psalm/Issue/ReferenceConstraintViolation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ReferenceConstraintViolation extends CodeIssue +final class ReferenceConstraintViolation extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 86; diff --git a/src/Psalm/Issue/ReferenceReusedFromConfusingScope.php b/src/Psalm/Issue/ReferenceReusedFromConfusingScope.php index 6c88cf67b26..f0e9dc15b81 100644 --- a/src/Psalm/Issue/ReferenceReusedFromConfusingScope.php +++ b/src/Psalm/Issue/ReferenceReusedFromConfusingScope.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ReferenceReusedFromConfusingScope extends CodeIssue +final class ReferenceReusedFromConfusingScope extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 308; diff --git a/src/Psalm/Issue/ReservedWord.php b/src/Psalm/Issue/ReservedWord.php index 6ea884fa7f3..9ecd7160574 100644 --- a/src/Psalm/Issue/ReservedWord.php +++ b/src/Psalm/Issue/ReservedWord.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class ReservedWord extends ClassIssue +final class ReservedWord extends ClassIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 95; diff --git a/src/Psalm/Issue/StringIncrement.php b/src/Psalm/Issue/StringIncrement.php index 4984f976974..91da422616c 100644 --- a/src/Psalm/Issue/StringIncrement.php +++ b/src/Psalm/Issue/StringIncrement.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class StringIncrement extends CodeIssue +final class StringIncrement extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 211; diff --git a/src/Psalm/Issue/TaintedCallable.php b/src/Psalm/Issue/TaintedCallable.php index d20f5760db4..4b988029704 100644 --- a/src/Psalm/Issue/TaintedCallable.php +++ b/src/Psalm/Issue/TaintedCallable.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedCallable extends TaintedInput +final class TaintedCallable extends TaintedInput { public const SHORTCODE = 243; } diff --git a/src/Psalm/Issue/TaintedCookie.php b/src/Psalm/Issue/TaintedCookie.php index c96d88f1af8..424b860c949 100644 --- a/src/Psalm/Issue/TaintedCookie.php +++ b/src/Psalm/Issue/TaintedCookie.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedCookie extends TaintedInput +final class TaintedCookie extends TaintedInput { public const SHORTCODE = 257; } diff --git a/src/Psalm/Issue/TaintedCustom.php b/src/Psalm/Issue/TaintedCustom.php index 338812b7b1d..2bd91c65caf 100644 --- a/src/Psalm/Issue/TaintedCustom.php +++ b/src/Psalm/Issue/TaintedCustom.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedCustom extends TaintedInput +final class TaintedCustom extends TaintedInput { public const SHORTCODE = 249; } diff --git a/src/Psalm/Issue/TaintedEval.php b/src/Psalm/Issue/TaintedEval.php index bb41a5ea02f..b003c5373f4 100644 --- a/src/Psalm/Issue/TaintedEval.php +++ b/src/Psalm/Issue/TaintedEval.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedEval extends TaintedInput +final class TaintedEval extends TaintedInput { public const SHORTCODE = 252; } diff --git a/src/Psalm/Issue/TaintedFile.php b/src/Psalm/Issue/TaintedFile.php index 4e8c43d89a0..1c1838574b8 100644 --- a/src/Psalm/Issue/TaintedFile.php +++ b/src/Psalm/Issue/TaintedFile.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedFile extends TaintedInput +final class TaintedFile extends TaintedInput { public const SHORTCODE = 255; } diff --git a/src/Psalm/Issue/TaintedHeader.php b/src/Psalm/Issue/TaintedHeader.php index e4c02c90914..ebbbfc5f239 100644 --- a/src/Psalm/Issue/TaintedHeader.php +++ b/src/Psalm/Issue/TaintedHeader.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedHeader extends TaintedInput +final class TaintedHeader extends TaintedInput { public const SHORTCODE = 256; } diff --git a/src/Psalm/Issue/TaintedHtml.php b/src/Psalm/Issue/TaintedHtml.php index 33fa28e0172..3c9956da866 100644 --- a/src/Psalm/Issue/TaintedHtml.php +++ b/src/Psalm/Issue/TaintedHtml.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedHtml extends TaintedInput +final class TaintedHtml extends TaintedInput { public const SHORTCODE = 245; } diff --git a/src/Psalm/Issue/TaintedInclude.php b/src/Psalm/Issue/TaintedInclude.php index da2387803d6..f1affa5c6c5 100644 --- a/src/Psalm/Issue/TaintedInclude.php +++ b/src/Psalm/Issue/TaintedInclude.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedInclude extends TaintedInput +final class TaintedInclude extends TaintedInput { public const SHORTCODE = 251; } diff --git a/src/Psalm/Issue/TaintedLdap.php b/src/Psalm/Issue/TaintedLdap.php index 37349c95b01..4ab8e32e2ff 100644 --- a/src/Psalm/Issue/TaintedLdap.php +++ b/src/Psalm/Issue/TaintedLdap.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedLdap extends TaintedInput +final class TaintedLdap extends TaintedInput { public const SHORTCODE = 254; } diff --git a/src/Psalm/Issue/TaintedSSRF.php b/src/Psalm/Issue/TaintedSSRF.php index 51d47734e33..def8a2cdc97 100644 --- a/src/Psalm/Issue/TaintedSSRF.php +++ b/src/Psalm/Issue/TaintedSSRF.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedSSRF extends TaintedInput +final class TaintedSSRF extends TaintedInput { public const SHORTCODE = 253; } diff --git a/src/Psalm/Issue/TaintedShell.php b/src/Psalm/Issue/TaintedShell.php index eea44a673e8..8ff52b1615f 100644 --- a/src/Psalm/Issue/TaintedShell.php +++ b/src/Psalm/Issue/TaintedShell.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedShell extends TaintedInput +final class TaintedShell extends TaintedInput { public const SHORTCODE = 246; } diff --git a/src/Psalm/Issue/TaintedSql.php b/src/Psalm/Issue/TaintedSql.php index c5fc7ffcbfd..9d790d71e62 100644 --- a/src/Psalm/Issue/TaintedSql.php +++ b/src/Psalm/Issue/TaintedSql.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedSql extends TaintedInput +final class TaintedSql extends TaintedInput { public const SHORTCODE = 244; } diff --git a/src/Psalm/Issue/TaintedSystemSecret.php b/src/Psalm/Issue/TaintedSystemSecret.php index a3d0210eb27..04888a99a37 100644 --- a/src/Psalm/Issue/TaintedSystemSecret.php +++ b/src/Psalm/Issue/TaintedSystemSecret.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedSystemSecret extends TaintedInput +final class TaintedSystemSecret extends TaintedInput { public const SHORTCODE = 248; } diff --git a/src/Psalm/Issue/TaintedTextWithQuotes.php b/src/Psalm/Issue/TaintedTextWithQuotes.php index 100f501def5..9b78c3d4509 100644 --- a/src/Psalm/Issue/TaintedTextWithQuotes.php +++ b/src/Psalm/Issue/TaintedTextWithQuotes.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedTextWithQuotes extends TaintedInput +final class TaintedTextWithQuotes extends TaintedInput { public const SHORTCODE = 274; } diff --git a/src/Psalm/Issue/TaintedUnserialize.php b/src/Psalm/Issue/TaintedUnserialize.php index 2217b4223c6..b2e97c9a438 100644 --- a/src/Psalm/Issue/TaintedUnserialize.php +++ b/src/Psalm/Issue/TaintedUnserialize.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedUnserialize extends TaintedInput +final class TaintedUnserialize extends TaintedInput { public const SHORTCODE = 250; } diff --git a/src/Psalm/Issue/TaintedUserSecret.php b/src/Psalm/Issue/TaintedUserSecret.php index 7ab6e59298a..5bbfcf17142 100644 --- a/src/Psalm/Issue/TaintedUserSecret.php +++ b/src/Psalm/Issue/TaintedUserSecret.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TaintedUserSecret extends TaintedInput +final class TaintedUserSecret extends TaintedInput { public const SHORTCODE = 247; } diff --git a/src/Psalm/Issue/TooFewArguments.php b/src/Psalm/Issue/TooFewArguments.php index cc98d15d969..84fe0cd5208 100644 --- a/src/Psalm/Issue/TooFewArguments.php +++ b/src/Psalm/Issue/TooFewArguments.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TooFewArguments extends ArgumentIssue +final class TooFewArguments extends ArgumentIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 25; diff --git a/src/Psalm/Issue/TooManyArguments.php b/src/Psalm/Issue/TooManyArguments.php index f271bfc8f55..a734b8be0af 100644 --- a/src/Psalm/Issue/TooManyArguments.php +++ b/src/Psalm/Issue/TooManyArguments.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TooManyArguments extends ArgumentIssue +final class TooManyArguments extends ArgumentIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 26; diff --git a/src/Psalm/Issue/TooManyTemplateParams.php b/src/Psalm/Issue/TooManyTemplateParams.php index d5654e57d1f..d1c24322f16 100644 --- a/src/Psalm/Issue/TooManyTemplateParams.php +++ b/src/Psalm/Issue/TooManyTemplateParams.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TooManyTemplateParams extends CodeIssue +final class TooManyTemplateParams extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 184; diff --git a/src/Psalm/Issue/Trace.php b/src/Psalm/Issue/Trace.php index 2c4ce125a97..eecf7d76614 100644 --- a/src/Psalm/Issue/Trace.php +++ b/src/Psalm/Issue/Trace.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class Trace extends CodeIssue +final class Trace extends CodeIssue { public const ERROR_LEVEL = 1; public const SHORTCODE = 224; diff --git a/src/Psalm/Issue/TraitMethodSignatureMismatch.php b/src/Psalm/Issue/TraitMethodSignatureMismatch.php index b9a322dd3b8..136ef911883 100644 --- a/src/Psalm/Issue/TraitMethodSignatureMismatch.php +++ b/src/Psalm/Issue/TraitMethodSignatureMismatch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class TraitMethodSignatureMismatch extends CodeIssue +final class TraitMethodSignatureMismatch extends CodeIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 192; diff --git a/src/Psalm/Issue/TypeDoesNotContainNull.php b/src/Psalm/Issue/TypeDoesNotContainNull.php index 9a9aa326b2e..16cc0204378 100644 --- a/src/Psalm/Issue/TypeDoesNotContainNull.php +++ b/src/Psalm/Issue/TypeDoesNotContainNull.php @@ -4,7 +4,7 @@ use Psalm\CodeLocation; -class TypeDoesNotContainNull extends CodeIssue +final class TypeDoesNotContainNull extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 90; diff --git a/src/Psalm/Issue/TypeDoesNotContainType.php b/src/Psalm/Issue/TypeDoesNotContainType.php index a496b5dbd6d..8999ae7b5e9 100644 --- a/src/Psalm/Issue/TypeDoesNotContainType.php +++ b/src/Psalm/Issue/TypeDoesNotContainType.php @@ -4,7 +4,7 @@ use Psalm\CodeLocation; -class TypeDoesNotContainType extends CodeIssue +final class TypeDoesNotContainType extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 56; diff --git a/src/Psalm/Issue/UncaughtThrowInGlobalScope.php b/src/Psalm/Issue/UncaughtThrowInGlobalScope.php index f5301c22811..cea631fdeb3 100644 --- a/src/Psalm/Issue/UncaughtThrowInGlobalScope.php +++ b/src/Psalm/Issue/UncaughtThrowInGlobalScope.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UncaughtThrowInGlobalScope extends CodeIssue +final class UncaughtThrowInGlobalScope extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 191; diff --git a/src/Psalm/Issue/UndefinedAttributeClass.php b/src/Psalm/Issue/UndefinedAttributeClass.php index e8ed2154dd8..de2db9eb6af 100644 --- a/src/Psalm/Issue/UndefinedAttributeClass.php +++ b/src/Psalm/Issue/UndefinedAttributeClass.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedAttributeClass extends ClassIssue +final class UndefinedAttributeClass extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 241; diff --git a/src/Psalm/Issue/UndefinedClass.php b/src/Psalm/Issue/UndefinedClass.php index a71a1511267..e2a9c6dcda1 100644 --- a/src/Psalm/Issue/UndefinedClass.php +++ b/src/Psalm/Issue/UndefinedClass.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedClass extends ClassIssue +final class UndefinedClass extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 19; diff --git a/src/Psalm/Issue/UndefinedConstant.php b/src/Psalm/Issue/UndefinedConstant.php index 0b8330f9688..7dfebe7b209 100644 --- a/src/Psalm/Issue/UndefinedConstant.php +++ b/src/Psalm/Issue/UndefinedConstant.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedConstant extends CodeIssue +final class UndefinedConstant extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 20; diff --git a/src/Psalm/Issue/UndefinedDocblockClass.php b/src/Psalm/Issue/UndefinedDocblockClass.php index a108e536747..92af6f6d10c 100644 --- a/src/Psalm/Issue/UndefinedDocblockClass.php +++ b/src/Psalm/Issue/UndefinedDocblockClass.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedDocblockClass extends ClassIssue +final class UndefinedDocblockClass extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 200; diff --git a/src/Psalm/Issue/UndefinedFunction.php b/src/Psalm/Issue/UndefinedFunction.php index 8524ceff1a6..fc72b8e518e 100644 --- a/src/Psalm/Issue/UndefinedFunction.php +++ b/src/Psalm/Issue/UndefinedFunction.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedFunction extends FunctionIssue +final class UndefinedFunction extends FunctionIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 21; diff --git a/src/Psalm/Issue/UndefinedGlobalVariable.php b/src/Psalm/Issue/UndefinedGlobalVariable.php index b68a765ddcf..3b5ec03e2ef 100644 --- a/src/Psalm/Issue/UndefinedGlobalVariable.php +++ b/src/Psalm/Issue/UndefinedGlobalVariable.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedGlobalVariable extends VariableIssue +final class UndefinedGlobalVariable extends VariableIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 127; diff --git a/src/Psalm/Issue/UndefinedInterface.php b/src/Psalm/Issue/UndefinedInterface.php index 8f8024e5ac0..77225faaf7e 100644 --- a/src/Psalm/Issue/UndefinedInterface.php +++ b/src/Psalm/Issue/UndefinedInterface.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedInterface extends ClassIssue +final class UndefinedInterface extends ClassIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 189; diff --git a/src/Psalm/Issue/UndefinedInterfaceMethod.php b/src/Psalm/Issue/UndefinedInterfaceMethod.php index 5dd1fec1979..a64e37b1814 100644 --- a/src/Psalm/Issue/UndefinedInterfaceMethod.php +++ b/src/Psalm/Issue/UndefinedInterfaceMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedInterfaceMethod extends MethodIssue +final class UndefinedInterfaceMethod extends MethodIssue { public const ERROR_LEVEL = 5; public const SHORTCODE = 181; diff --git a/src/Psalm/Issue/UndefinedMagicMethod.php b/src/Psalm/Issue/UndefinedMagicMethod.php index 370bacd3f8d..b6f88efb0e0 100644 --- a/src/Psalm/Issue/UndefinedMagicMethod.php +++ b/src/Psalm/Issue/UndefinedMagicMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedMagicMethod extends MethodIssue +final class UndefinedMagicMethod extends MethodIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 219; diff --git a/src/Psalm/Issue/UndefinedMagicPropertyAssignment.php b/src/Psalm/Issue/UndefinedMagicPropertyAssignment.php index b73af35de0f..5b531e9e5dd 100644 --- a/src/Psalm/Issue/UndefinedMagicPropertyAssignment.php +++ b/src/Psalm/Issue/UndefinedMagicPropertyAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedMagicPropertyAssignment extends PropertyIssue +final class UndefinedMagicPropertyAssignment extends PropertyIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 217; diff --git a/src/Psalm/Issue/UndefinedMagicPropertyFetch.php b/src/Psalm/Issue/UndefinedMagicPropertyFetch.php index 086d5f8c8d7..1c1393e18c9 100644 --- a/src/Psalm/Issue/UndefinedMagicPropertyFetch.php +++ b/src/Psalm/Issue/UndefinedMagicPropertyFetch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedMagicPropertyFetch extends PropertyIssue +final class UndefinedMagicPropertyFetch extends PropertyIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 218; diff --git a/src/Psalm/Issue/UndefinedMethod.php b/src/Psalm/Issue/UndefinedMethod.php index f50190574c4..6331f2d8381 100644 --- a/src/Psalm/Issue/UndefinedMethod.php +++ b/src/Psalm/Issue/UndefinedMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedMethod extends MethodIssue +final class UndefinedMethod extends MethodIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 22; diff --git a/src/Psalm/Issue/UndefinedPropertyAssignment.php b/src/Psalm/Issue/UndefinedPropertyAssignment.php index 197381449ca..bd35edb4df1 100644 --- a/src/Psalm/Issue/UndefinedPropertyAssignment.php +++ b/src/Psalm/Issue/UndefinedPropertyAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedPropertyAssignment extends PropertyIssue +final class UndefinedPropertyAssignment extends PropertyIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 38; diff --git a/src/Psalm/Issue/UndefinedPropertyFetch.php b/src/Psalm/Issue/UndefinedPropertyFetch.php index abaa311ad78..b6a160cb142 100644 --- a/src/Psalm/Issue/UndefinedPropertyFetch.php +++ b/src/Psalm/Issue/UndefinedPropertyFetch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedPropertyFetch extends PropertyIssue +final class UndefinedPropertyFetch extends PropertyIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 39; diff --git a/src/Psalm/Issue/UndefinedThisPropertyAssignment.php b/src/Psalm/Issue/UndefinedThisPropertyAssignment.php index d713fec08df..995c76d0d36 100644 --- a/src/Psalm/Issue/UndefinedThisPropertyAssignment.php +++ b/src/Psalm/Issue/UndefinedThisPropertyAssignment.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedThisPropertyAssignment extends PropertyIssue +final class UndefinedThisPropertyAssignment extends PropertyIssue { public const ERROR_LEVEL = 5; public const SHORTCODE = 40; diff --git a/src/Psalm/Issue/UndefinedThisPropertyFetch.php b/src/Psalm/Issue/UndefinedThisPropertyFetch.php index b166954b046..3ef194b23ba 100644 --- a/src/Psalm/Issue/UndefinedThisPropertyFetch.php +++ b/src/Psalm/Issue/UndefinedThisPropertyFetch.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedThisPropertyFetch extends PropertyIssue +final class UndefinedThisPropertyFetch extends PropertyIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 41; diff --git a/src/Psalm/Issue/UndefinedTrace.php b/src/Psalm/Issue/UndefinedTrace.php index a32113fc64d..b9cffdfd674 100644 --- a/src/Psalm/Issue/UndefinedTrace.php +++ b/src/Psalm/Issue/UndefinedTrace.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedTrace extends CodeIssue +final class UndefinedTrace extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 225; diff --git a/src/Psalm/Issue/UndefinedTrait.php b/src/Psalm/Issue/UndefinedTrait.php index 38d68134895..15c8691d265 100644 --- a/src/Psalm/Issue/UndefinedTrait.php +++ b/src/Psalm/Issue/UndefinedTrait.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedTrait extends CodeIssue +final class UndefinedTrait extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 23; diff --git a/src/Psalm/Issue/UndefinedVariable.php b/src/Psalm/Issue/UndefinedVariable.php index 5d6644a4a1f..dfead1ecfeb 100644 --- a/src/Psalm/Issue/UndefinedVariable.php +++ b/src/Psalm/Issue/UndefinedVariable.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UndefinedVariable extends CodeIssue +final class UndefinedVariable extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 24; diff --git a/src/Psalm/Issue/UnevaluatedCode.php b/src/Psalm/Issue/UnevaluatedCode.php index 0a98929fc45..dc708a7fe35 100644 --- a/src/Psalm/Issue/UnevaluatedCode.php +++ b/src/Psalm/Issue/UnevaluatedCode.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnevaluatedCode extends CodeIssue +final class UnevaluatedCode extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 84; diff --git a/src/Psalm/Issue/UnhandledMatchCondition.php b/src/Psalm/Issue/UnhandledMatchCondition.php index 0edeaf5c13d..3023d1c46f9 100644 --- a/src/Psalm/Issue/UnhandledMatchCondition.php +++ b/src/Psalm/Issue/UnhandledMatchCondition.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnhandledMatchCondition extends CodeIssue +final class UnhandledMatchCondition extends CodeIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 236; diff --git a/src/Psalm/Issue/UnimplementedAbstractMethod.php b/src/Psalm/Issue/UnimplementedAbstractMethod.php index ebe6afad786..8986d310042 100644 --- a/src/Psalm/Issue/UnimplementedAbstractMethod.php +++ b/src/Psalm/Issue/UnimplementedAbstractMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnimplementedAbstractMethod extends CodeIssue +final class UnimplementedAbstractMethod extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 101; diff --git a/src/Psalm/Issue/UnimplementedInterfaceMethod.php b/src/Psalm/Issue/UnimplementedInterfaceMethod.php index 8ed4307f261..d56878d5f71 100644 --- a/src/Psalm/Issue/UnimplementedInterfaceMethod.php +++ b/src/Psalm/Issue/UnimplementedInterfaceMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnimplementedInterfaceMethod extends CodeIssue +final class UnimplementedInterfaceMethod extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 44; diff --git a/src/Psalm/Issue/UninitializedProperty.php b/src/Psalm/Issue/UninitializedProperty.php index 5b60ef5c67c..efd7373473c 100644 --- a/src/Psalm/Issue/UninitializedProperty.php +++ b/src/Psalm/Issue/UninitializedProperty.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UninitializedProperty extends PropertyIssue +final class UninitializedProperty extends PropertyIssue { public const ERROR_LEVEL = 7; public const SHORTCODE = 186; diff --git a/src/Psalm/Issue/UnnecessaryVarAnnotation.php b/src/Psalm/Issue/UnnecessaryVarAnnotation.php index 430c2626157..0f99fe7ed05 100644 --- a/src/Psalm/Issue/UnnecessaryVarAnnotation.php +++ b/src/Psalm/Issue/UnnecessaryVarAnnotation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnnecessaryVarAnnotation extends CodeIssue +final class UnnecessaryVarAnnotation extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 212; diff --git a/src/Psalm/Issue/UnrecognizedExpression.php b/src/Psalm/Issue/UnrecognizedExpression.php index 62461750065..d93c788bb59 100644 --- a/src/Psalm/Issue/UnrecognizedExpression.php +++ b/src/Psalm/Issue/UnrecognizedExpression.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnrecognizedExpression extends CodeIssue +final class UnrecognizedExpression extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 48; diff --git a/src/Psalm/Issue/UnrecognizedStatement.php b/src/Psalm/Issue/UnrecognizedStatement.php index 2615040ab90..f9184b03fdb 100644 --- a/src/Psalm/Issue/UnrecognizedStatement.php +++ b/src/Psalm/Issue/UnrecognizedStatement.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnrecognizedStatement extends CodeIssue +final class UnrecognizedStatement extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 49; diff --git a/src/Psalm/Issue/UnresolvableConstant.php b/src/Psalm/Issue/UnresolvableConstant.php index 9a0663502ec..04c8f845214 100644 --- a/src/Psalm/Issue/UnresolvableConstant.php +++ b/src/Psalm/Issue/UnresolvableConstant.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnresolvableConstant extends CodeIssue +final class UnresolvableConstant extends CodeIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 303; diff --git a/src/Psalm/Issue/UnresolvableInclude.php b/src/Psalm/Issue/UnresolvableInclude.php index 8491662a4ac..2e113f67542 100644 --- a/src/Psalm/Issue/UnresolvableInclude.php +++ b/src/Psalm/Issue/UnresolvableInclude.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnresolvableInclude extends CodeIssue +final class UnresolvableInclude extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 106; diff --git a/src/Psalm/Issue/UnsafeGenericInstantiation.php b/src/Psalm/Issue/UnsafeGenericInstantiation.php index 7d75fd96101..c7f32962581 100644 --- a/src/Psalm/Issue/UnsafeGenericInstantiation.php +++ b/src/Psalm/Issue/UnsafeGenericInstantiation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnsafeGenericInstantiation extends CodeIssue +final class UnsafeGenericInstantiation extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 269; diff --git a/src/Psalm/Issue/UnsafeInstantiation.php b/src/Psalm/Issue/UnsafeInstantiation.php index 321334b7f46..76628a21b8a 100644 --- a/src/Psalm/Issue/UnsafeInstantiation.php +++ b/src/Psalm/Issue/UnsafeInstantiation.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnsafeInstantiation extends CodeIssue +final class UnsafeInstantiation extends CodeIssue { public const ERROR_LEVEL = 2; public const SHORTCODE = 229; diff --git a/src/Psalm/Issue/UnusedClass.php b/src/Psalm/Issue/UnusedClass.php index 7fbeab28f9f..52b0d6834be 100644 --- a/src/Psalm/Issue/UnusedClass.php +++ b/src/Psalm/Issue/UnusedClass.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedClass extends ClassIssue +final class UnusedClass extends ClassIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 75; diff --git a/src/Psalm/Issue/UnusedClosureParam.php b/src/Psalm/Issue/UnusedClosureParam.php index 7a2ad8ed184..8bc11ef1465 100644 --- a/src/Psalm/Issue/UnusedClosureParam.php +++ b/src/Psalm/Issue/UnusedClosureParam.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedClosureParam extends CodeIssue +final class UnusedClosureParam extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 188; diff --git a/src/Psalm/Issue/UnusedConstructor.php b/src/Psalm/Issue/UnusedConstructor.php index f29794d2e61..90139713e84 100644 --- a/src/Psalm/Issue/UnusedConstructor.php +++ b/src/Psalm/Issue/UnusedConstructor.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedConstructor extends MethodIssue +final class UnusedConstructor extends MethodIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 258; diff --git a/src/Psalm/Issue/UnusedForeachValue.php b/src/Psalm/Issue/UnusedForeachValue.php index 3fbf17eda48..e9c8fc0ef59 100644 --- a/src/Psalm/Issue/UnusedForeachValue.php +++ b/src/Psalm/Issue/UnusedForeachValue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedForeachValue extends CodeIssue +final class UnusedForeachValue extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 275; diff --git a/src/Psalm/Issue/UnusedFunctionCall.php b/src/Psalm/Issue/UnusedFunctionCall.php index 257a9b31d32..43f5c62387a 100644 --- a/src/Psalm/Issue/UnusedFunctionCall.php +++ b/src/Psalm/Issue/UnusedFunctionCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedFunctionCall extends FunctionIssue +final class UnusedFunctionCall extends FunctionIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 206; diff --git a/src/Psalm/Issue/UnusedMethod.php b/src/Psalm/Issue/UnusedMethod.php index 35ac22c1caf..2e72d433d6a 100644 --- a/src/Psalm/Issue/UnusedMethod.php +++ b/src/Psalm/Issue/UnusedMethod.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedMethod extends MethodIssue +final class UnusedMethod extends MethodIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 76; diff --git a/src/Psalm/Issue/UnusedMethodCall.php b/src/Psalm/Issue/UnusedMethodCall.php index 2ed355ad324..067b13af8e5 100644 --- a/src/Psalm/Issue/UnusedMethodCall.php +++ b/src/Psalm/Issue/UnusedMethodCall.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedMethodCall extends MethodIssue +final class UnusedMethodCall extends MethodIssue { public const ERROR_LEVEL = -1; public const SHORTCODE = 209; diff --git a/src/Psalm/Issue/UnusedParam.php b/src/Psalm/Issue/UnusedParam.php index f67273b39d4..cdbd376a336 100644 --- a/src/Psalm/Issue/UnusedParam.php +++ b/src/Psalm/Issue/UnusedParam.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedParam extends CodeIssue +final class UnusedParam extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 135; diff --git a/src/Psalm/Issue/UnusedProperty.php b/src/Psalm/Issue/UnusedProperty.php index 3f25a3ca511..273f227223c 100644 --- a/src/Psalm/Issue/UnusedProperty.php +++ b/src/Psalm/Issue/UnusedProperty.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedProperty extends CodeIssue +final class UnusedProperty extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 150; diff --git a/src/Psalm/Issue/UnusedPsalmSuppress.php b/src/Psalm/Issue/UnusedPsalmSuppress.php index edeab55e6dc..570012ae719 100644 --- a/src/Psalm/Issue/UnusedPsalmSuppress.php +++ b/src/Psalm/Issue/UnusedPsalmSuppress.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedPsalmSuppress extends CodeIssue +final class UnusedPsalmSuppress extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 207; diff --git a/src/Psalm/Issue/UnusedReturnValue.php b/src/Psalm/Issue/UnusedReturnValue.php index 95daec9be4c..a31e8bad23a 100644 --- a/src/Psalm/Issue/UnusedReturnValue.php +++ b/src/Psalm/Issue/UnusedReturnValue.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedReturnValue extends CodeIssue +final class UnusedReturnValue extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 272; diff --git a/src/Psalm/Issue/UnusedVariable.php b/src/Psalm/Issue/UnusedVariable.php index ff4ee9eabce..4046056e0d6 100644 --- a/src/Psalm/Issue/UnusedVariable.php +++ b/src/Psalm/Issue/UnusedVariable.php @@ -2,7 +2,7 @@ namespace Psalm\Issue; -class UnusedVariable extends CodeIssue +final class UnusedVariable extends CodeIssue { public const ERROR_LEVEL = -2; public const SHORTCODE = 77; From aea950a10c93d92ed9dccee9d7535a2e66175861 Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sun, 6 Feb 2022 00:33:29 +0200 Subject: [PATCH 2/2] Update UPGRADING.md --- UPGRADING.md | 296 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 291 insertions(+), 5 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index 31d73a9c979..f148dd72ab4 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -149,11 +149,11 @@ - `Psalm\Plugin\EventHandler\Event\PropertyTypeProviderEvent` - `Psalm\Plugin\EventHandler\Event\PropertyVisibilityProviderEvent` - `Psalm\Plugin\EventHandler\Event\StringInterpreterEvent` -- [BC] Atomic::__toString() used to return a string representation of the type that was using double quotes (") to quote literals. This is now using single quotes (') to be more aligned with the rest of the codebase. -- [BC] Atomic::__toString() is now final -- [BC] Atomic::__toString() now returns a more detailed version of the type (it calls getId() under the hood) -- [BC] Atomic::getId() has now a first param $exact. Calling the method with false will return a less detailed version of the type in some cases (similarly to what __toString used to return) -- [BC] To remove a variable from the context, Context::remove(). Calling +- [BC] `Atomic::__toString()` used to return a string representation of the type that was using double quotes (`"`) to quote literals. This is now using single quotes (`'`) to be more aligned with the rest of the codebase. +- [BC] `Atomic::__toString()` is now final +- [BC] `Atomic::__toString()` now returns a more detailed version of the type (it calls `getId()` under the hood) +- [BC] Atomic::getId() has now a first param $exact. Calling the method with false will return a less detailed version of the type in some cases (similarly to what `__toString` used to return) +- [BC] To remove a variable from the context, use `Context::remove()`. Calling `unset($context->vars_in_scope[$var_id])` can cause problems when using references. - [BC] `TKeyOfClassConstant` has been renamed to `TKeyOfArray`. - [BC] `TValueOfClassConstant` has been renamed to `TValueOfArray`. @@ -222,6 +222,291 @@ - [BC] Class `Psalm\ErrorBaseline` became final - [BC] `Psalm\Config#__construct()` was marked `@internal` - [BC] Class `Psalm\DocComment` became final +- All non-abstract issues are now final: + - [BC] Class `Psalm\Issue\InaccessibleProperty` became final + - [BC] Class `Psalm\Issue\TaintedShell` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidIterator` became final + - [BC] Class `Psalm\Issue\MethodSignatureMustOmitReturnType` became final + - [BC] Class `Psalm\Issue\TaintedHtml` became final + - [BC] Class `Psalm\Issue\DuplicateConstant` became final + - [BC] Class `Psalm\Issue\MissingConstructor` became final + - [BC] Class `Psalm\Issue\PossiblyFalseIterator` became final + - [BC] Class `Psalm\Issue\PossiblyUndefinedArrayOffset` became final + - [BC] Class `Psalm\Issue\FalseOperand` became final + - [BC] Class `Psalm\Issue\MixedArrayAssignment` became final + - [BC] Class `Psalm\Issue\MixedArrayAccess` became final + - [BC] Class `Psalm\Issue\TaintedUnserialize` became final + - [BC] Class `Psalm\Issue\NullFunctionCall` became final + - [BC] Class `Psalm\Issue\UnusedConstructor` became final + - [BC] Class `Psalm\Issue\InvalidEnumCaseValue` became final + - [BC] Class `Psalm\Issue\MissingClosureReturnType` became final + - [BC] Class `Psalm\Issue\LessSpecificClassConstantType` became final + - [BC] Class `Psalm\Issue\MixedPropertyFetch` became final + - [BC] Class `Psalm\Issue\PossiblyNullArrayAccess` became final + - [BC] Class `Psalm\Issue\MissingPropertyType` became final + - [BC] Class `Psalm\Issue\TaintedCallable` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidMethodCall` became final + - [BC] Class `Psalm\Issue\TaintedHeader` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidArrayAssignment` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidCast` became final + - [BC] Class `Psalm\Issue\ImpurePropertyAssignment` became final + - [BC] Class `Psalm\Issue\MixedPropertyTypeCoercion` became final + - [BC] Class `Psalm\Issue\UnresolvableConstant` became final + - [BC] Class `Psalm\Issue\LoopInvalidation` became final + - [BC] Class `Psalm\Issue\TooManyTemplateParams` became final + - [BC] Class `Psalm\Issue\InvalidCatch` became final + - [BC] Class `Psalm\Issue\MismatchingDocblockReturnType` became final + - [BC] Class `Psalm\Issue\PossiblyUndefinedIntArrayOffset` became final + - [BC] Class `Psalm\Issue\NullArrayAccess` became final + - [BC] Class `Psalm\Issue\NoEnumProperties` became final + - [BC] Class `Psalm\Issue\ImpureByReferenceAssignment` became final + - [BC] Class `Psalm\Issue\RedundantConditionGivenDocblockType` became final + - [BC] Class `Psalm\Issue\MixedReturnTypeCoercion` became final + - [BC] Class `Psalm\Issue\PossiblyNullOperand` became final + - [BC] Class `Psalm\Issue\InvalidGlobal` became final + - [BC] Class `Psalm\Issue\PossiblyNullArgument` became final + - [BC] Class `Psalm\Issue\ForbiddenCode` became final + - [BC] Class `Psalm\Issue\RedundantCast` became final + - [BC] Class `Psalm\Issue\UnusedParam` became final + - [BC] Class `Psalm\Issue\DuplicateArrayKey` became final + - [BC] Class `Psalm\Issue\MissingImmutableAnnotation` became final + - [BC] Class `Psalm\Issue\MutableDependency` became final + - [BC] Class `Psalm\Issue\MixedPropertyAssignment` became final + - [BC] Class `Psalm\Issue\DeprecatedTrait` became final + - [BC] Class `Psalm\Issue\InvalidArrayAccess` became final + - [BC] Class `Psalm\Issue\LessSpecificReturnStatement` became final + - [BC] Class `Psalm\Issue\AssignmentToVoid` became final + - [BC] Class `Psalm\Issue\InvalidPropertyAssignment` became final + - [BC] Class `Psalm\Issue\InvalidFalsableReturnType` became final + - [BC] Class `Psalm\Issue\IfThisIsMismatch` became final + - [BC] Class `Psalm\Issue\UndefinedPropertyFetch` became final + - [BC] Class `Psalm\Issue\UndefinedMagicPropertyFetch` became final + - [BC] Class `Psalm\Issue\PossiblyUnusedReturnValue` became final + - [BC] Class `Psalm\Issue\PossiblyNullPropertyFetch` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidPropertyFetch` became final + - [BC] Class `Psalm\Issue\MixedClone` became final + - [BC] Class `Psalm\Issue\DuplicateFunction` became final + - [BC] Class `Psalm\Issue\InaccessibleClassConstant` became final + - [BC] Class `Psalm\Issue\UndefinedGlobalVariable` became final + - [BC] Class `Psalm\Issue\ImplicitToStringCast` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidDocblockTag` became final + - [BC] Class `Psalm\Issue\ReservedWord` became final + - [BC] Class `Psalm\Issue\InvalidOperand` became final + - [BC] Class `Psalm\Issue\UnusedProperty` became final + - [BC] Class `Psalm\Issue\UnevaluatedCode` became final + - [BC] Class `Psalm\Issue\NullPropertyFetch` became final + - [BC] Class `Psalm\Issue\ParamNameMismatch` became final + - [BC] Class `Psalm\Issue\CircularReference` became final + - [BC] Class `Psalm\Issue\UndefinedThisPropertyFetch` became final + - [BC] Class `Psalm\Issue\NonStaticSelfCall` became final + - [BC] Class `Psalm\Issue\NullOperand` became final + - [BC] Class `Psalm\Issue\MixedAssignment` became final + - [BC] Class `Psalm\Issue\MixedFunctionCall` became final + - [BC] Class `Psalm\Issue\InvalidTypeImport` became final + - [BC] Class `Psalm\Issue\PossiblyNullArrayOffset` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidArrayOffset` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidArgument` became final + - [BC] Class `Psalm\Issue\UndefinedPropertyAssignment` became final + - [BC] Class `Psalm\Issue\UnusedReturnValue` became final + - [BC] Class `Psalm\Issue\ImpureFunctionCall` became final + - [BC] Class `Psalm\Issue\RedundantFunctionCallGivenDocblockType` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidPropertyAssignmentValue` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidOperand` became final + - [BC] Class `Psalm\Issue\ArgumentTypeCoercion` became final + - [BC] Class `Psalm\Issue\OverriddenPropertyAccess` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidArrayAccess` became final + - [BC] Class `Psalm\Issue\UnusedForeachValue` became final + - [BC] Class `Psalm\Issue\ImplementedParamTypeMismatch` became final + - [BC] Class `Psalm\Issue\InvalidConstantAssignmentValue` became final + - [BC] Class `Psalm\Issue\PossiblyUndefinedMethod` became final + - [BC] Class `Psalm\Issue\DuplicateEnumCaseValue` became final + - [BC] Class `Psalm\Issue\RawObjectIteration` became final + - [BC] Class `Psalm\Issue\UndefinedVariable` became final + - [BC] Class `Psalm\Issue\MissingDocblockType` became final + - [BC] Class `Psalm\Issue\NullArrayOffset` became final + - [BC] Class `Psalm\Issue\PropertyNotSetInConstructor` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidPropertyAssignment` became final + - [BC] Class `Psalm\Issue\PossiblyNullPropertyAssignmentValue` became final + - [BC] Class `Psalm\Issue\UnsafeInstantiation` became final + - [BC] Class `Psalm\Issue\UnimplementedAbstractMethod` became final + - [BC] Class `Psalm\Issue\UnusedClosureParam` became final + - [BC] Class `Psalm\Issue\PossiblyNullFunctionCall` became final + - [BC] Class `Psalm\Issue\UndefinedAttributeClass` became final + - [BC] Class `Psalm\Issue\NullableReturnStatement` became final + - [BC] Class `Psalm\Issue\DuplicateMethod` became final + - [BC] Class `Psalm\Issue\TooFewArguments` became final + - [BC] Class `Psalm\Issue\UndefinedConstant` became final + - [BC] Class `Psalm\Issue\NullReference` became final + - [BC] Class `Psalm\Issue\ImplementedReturnTypeMismatch` became final + - [BC] Class `Psalm\Issue\InvalidEnumBackingType` became final + - [BC] Class `Psalm\Issue\InvalidNullableReturnType` became final + - [BC] Class `Psalm\Issue\ImpureVariable` became final + - [BC] Class `Psalm\Issue\TypeDoesNotContainNull` became final + - [BC] Class `Psalm\Issue\ConstructorSignatureMismatch` became final + - [BC] Class `Psalm\Issue\ImpurePropertyFetch` became final + - [BC] Class `Psalm\Issue\RedundantCastGivenDocblockType` became final + - [BC] Class `Psalm\Issue\PropertyTypeCoercion` became final + - [BC] Class `Psalm\Issue\InvalidDocblockParamName` became final + - [BC] Class `Psalm\Issue\UnsafeGenericInstantiation` became final + - [BC] Class `Psalm\Issue\MissingClosureParamType` became final + - [BC] Class `Psalm\Issue\TraitMethodSignatureMismatch` became final + - [BC] Class `Psalm\Issue\ImpureStaticProperty` became final + - [BC] Class `Psalm\Issue\InvalidThrow` became final + - [BC] Class `Psalm\Issue\ParentNotFound` became final + - [BC] Class `Psalm\Issue\ImpureStaticVariable` became final + - [BC] Class `Psalm\Issue\PossiblyFalseReference` became final + - [BC] Class `Psalm\Issue\ComplexMethod` became final + - [BC] Class `Psalm\Issue\PossiblyNullArrayAssignment` became final + - [BC] Class `Psalm\Issue\AbstractInstantiation` became final + - [BC] Class `Psalm\Issue\UncaughtThrowInGlobalScope` became final + - [BC] Class `Psalm\Issue\MismatchingDocblockPropertyType` became final + - [BC] Class `Psalm\Issue\UnresolvableInclude` became final + - [BC] Class `Psalm\Issue\DocblockTypeContradiction` became final + - [BC] Class `Psalm\Issue\TaintedEval` became final + - [BC] Class `Psalm\Issue\UnusedVariable` became final + - [BC] Class `Psalm\Issue\DeprecatedConstant` became final + - [BC] Class `Psalm\Issue\TaintedSystemSecret` became final + - [BC] Class `Psalm\Issue\EmptyArrayAccess` became final + - [BC] Class `Psalm\Issue\UndefinedInterface` became final + - [BC] Class `Psalm\Issue\MixedInferredReturnType` became final + - [BC] Class `Psalm\Issue\TaintedCookie` became final + - [BC] Class `Psalm\Issue\UndefinedMagicPropertyAssignment` became final + - [BC] Class `Psalm\Issue\NamedArgumentNotAllowed` became final + - [BC] Class `Psalm\Issue\MethodSignatureMustProvideReturnType` became final + - [BC] Class `Psalm\Issue\MissingParamType` became final + - [BC] Class `Psalm\Issue\InvalidArrayAssignment` became final + - [BC] Class `Psalm\Issue\UnimplementedInterfaceMethod` became final + - [BC] Class `Psalm\Issue\InvalidPassByReference` became final + - [BC] Class `Psalm\Issue\MissingDependency` became final + - [BC] Class `Psalm\Issue\ReferenceConstraintViolation` became final + - [BC] Class `Psalm\Issue\TaintedLdap` became final + - [BC] Class `Psalm\Issue\PossiblyNullIterator` became final + - [BC] Class `Psalm\Issue\InvalidScalarArgument` became final + - [BC] Class `Psalm\Issue\DeprecatedMethod` became final + - [BC] Class `Psalm\Issue\NullPropertyAssignment` became final + - [BC] Class `Psalm\Issue\InvalidExtendClass` became final + - [BC] Class `Psalm\Issue\DeprecatedClass` became final + - [BC] Class `Psalm\Issue\ReferenceReusedFromConfusingScope` became final + - [BC] Class `Psalm\Issue\UndefinedFunction` became final + - [BC] Class `Psalm\Issue\LessSpecificImplementedReturnType` became final + - [BC] Class `Psalm\Issue\NullIterator` became final + - [BC] Class `Psalm\Issue\TaintedInclude` became final + - [BC] Class `Psalm\Issue\UnusedMethodCall` became final + - [BC] Class `Psalm\Issue\InvalidIterator` became final + - [BC] Class `Psalm\Issue\PsalmInternalError` became final + - [BC] Class `Psalm\Issue\InvalidParent` became final + - [BC] Class `Psalm\Issue\AmbiguousConstantInheritance` became final + - [BC] Class `Psalm\Issue\InvalidLiteralArgument` became final + - [BC] Class `Psalm\Issue\MixedReturnStatement` became final + - [BC] Class `Psalm\Issue\AbstractMethodCall` became final + - [BC] Class `Psalm\Issue\InvalidClone` became final + - [BC] Class `Psalm\Issue\DuplicateEnumCase` became final + - [BC] Class `Psalm\Issue\InvalidDocblock` became final + - [BC] Class `Psalm\Issue\RedundantIdentityWithTrue` became final + - [BC] Class `Psalm\Issue\MissingReturnType` became final + - [BC] Class `Psalm\Issue\RedundantCondition` became final + - [BC] Class `Psalm\Issue\UnnecessaryVarAnnotation` became final + - [BC] Class `Psalm\Issue\ConfigIssue` became final + - [BC] Class `Psalm\Issue\InternalClass` became final + - [BC] Class `Psalm\Issue\UndefinedDocblockClass` became final + - [BC] Class `Psalm\Issue\DuplicateParam` became final + - [BC] Class `Psalm\Issue\MismatchingDocblockParamType` became final + - [BC] Class `Psalm\Issue\LessSpecificReturnType` became final + - [BC] Class `Psalm\Issue\PossiblyUnusedProperty` became final + - [BC] Class `Psalm\Issue\PossiblyNullReference` became final + - [BC] Class `Psalm\Issue\MissingFile` became final + - [BC] Class `Psalm\Issue\InvalidArgument` became final + - [BC] Class `Psalm\Issue\PossiblyUndefinedGlobalVariable` became final + - [BC] Class `Psalm\Issue\UndefinedThisPropertyAssignment` became final + - [BC] Class `Psalm\Issue\ConflictingReferenceConstraint` became final + - [BC] Class `Psalm\Issue\InvalidCast` became final + - [BC] Class `Psalm\Issue\MoreSpecificReturnType` became final + - [BC] Class `Psalm\Issue\ImpureMethodCall` became final + - [BC] Class `Psalm\Issue\UnrecognizedExpression` became final + - [BC] Class `Psalm\Issue\NoValue` became final + - [BC] Class `Psalm\Issue\DeprecatedInterface` became final + - [BC] Class `Psalm\Issue\InvalidStringClass` became final + - [BC] Class `Psalm\Issue\MixedMethodCall` became final + - [BC] Class `Psalm\Issue\UndefinedMagicMethod` became final + - [BC] Class `Psalm\Issue\MissingThrowsDocblock` became final + - [BC] Class `Psalm\Issue\TaintedTextWithQuotes` became final + - [BC] Class `Psalm\Issue\InvalidReturnStatement` became final + - [BC] Class `Psalm\Issue\DeprecatedFunction` became final + - [BC] Class `Psalm\Issue\InterfaceInstantiation` became final + - [BC] Class `Psalm\Issue\TooManyArguments` became final + - [BC] Class `Psalm\Issue\PossibleRawObjectIteration` became final + - [BC] Class `Psalm\Issue\PossiblyFalsePropertyAssignmentValue` became final + - [BC] Class `Psalm\Issue\FalsableReturnStatement` became final + - [BC] Class `Psalm\Issue\RedundantFunctionCall` became final + - [BC] Class `Psalm\Issue\ImplementationRequirementViolation` became final + - [BC] Class `Psalm\Issue\InternalMethod` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidFunctionCall` became final + - [BC] Class `Psalm\Issue\OverriddenMethodAccess` became final + - [BC] Class `Psalm\Issue\MixedArgumentTypeCoercion` became final + - [BC] Class `Psalm\Issue\InvalidAttribute` became final + - [BC] Class `Psalm\Issue\UndefinedInterfaceMethod` became final + - [BC] Class `Psalm\Issue\InvalidPropertyFetch` became final + - [BC] Class `Psalm\Issue\PossiblyUnusedMethod` became final + - [BC] Class `Psalm\Issue\UndefinedTrace` became final + - [BC] Class `Psalm\Issue\NullArgument` became final + - [BC] Class `Psalm\Issue\UndefinedMethod` became final + - [BC] Class `Psalm\Issue\TaintedUserSecret` became final + - [BC] Class `Psalm\Issue\UndefinedTrait` became final + - [BC] Class `Psalm\Issue\UnusedClass` became final + - [BC] Class `Psalm\Issue\StringIncrement` became final + - [BC] Class `Psalm\Issue\InaccessibleMethod` became final + - [BC] Class `Psalm\Issue\PossiblyUnusedParam` became final + - [BC] Class `Psalm\Issue\Trace` became final + - [BC] Class `Psalm\Issue\UnhandledMatchCondition` became final + - [BC] Class `Psalm\Issue\DuplicateClass` became final + - [BC] Class `Psalm\Issue\InvalidClass` became final + - [BC] Class `Psalm\Issue\TypeDoesNotContainType` became final + - [BC] Class `Psalm\Issue\InvalidScope` became final + - [BC] Class `Psalm\Issue\TaintedCustom` became final + - [BC] Class `Psalm\Issue\TaintedSSRF` became final + - [BC] Class `Psalm\Issue\InvalidNamedArgument` became final + - [BC] Class `Psalm\Issue\InvalidPropertyAssignmentValue` became final + - [BC] Class `Psalm\Issue\ContinueOutsideLoop` became final + - [BC] Class `Psalm\Issue\MixedArgument` became final + - [BC] Class `Psalm\Issue\TaintedSql` became final + - [BC] Class `Psalm\Issue\UnusedFunctionCall` became final + - [BC] Class `Psalm\Issue\InternalProperty` became final + - [BC] Class `Psalm\Issue\InvalidParamDefault` became final + - [BC] Class `Psalm\Issue\RedundantPropertyInitializationCheck` became final + - [BC] Class `Psalm\Issue\InvalidTraversableImplementation` became final + - [BC] Class `Psalm\Issue\InvalidTemplateParam` became final + - [BC] Class `Psalm\Issue\InvalidStaticInvocation` became final + - [BC] Class `Psalm\Issue\MixedArrayOffset` became final + - [BC] Class `Psalm\Issue\PossiblyInvalidClone` became final + - [BC] Class `Psalm\Issue\InvalidFunctionCall` became final + - [BC] Class `Psalm\Issue\InvalidMethodCall` became final + - [BC] Class `Psalm\Issue\ComplexFunction` became final + - [BC] Class `Psalm\Issue\UnusedPsalmSuppress` became final + - [BC] Class `Psalm\Issue\MixedStringOffsetAssignment` became final + - [BC] Class `Psalm\Issue\UnrecognizedStatement` became final + - [BC] Class `Psalm\Issue\TaintedFile` became final + - [BC] Class `Psalm\Issue\UnusedMethod` became final + - [BC] Class `Psalm\Issue\PossiblyFalseArgument` became final + - [BC] Class `Psalm\Issue\DeprecatedProperty` became final + - [BC] Class `Psalm\Issue\PossiblyUndefinedVariable` became final + - [BC] Class `Psalm\Issue\PossiblyNullPropertyAssignment` became final + - [BC] Class `Psalm\Issue\MixedOperand` became final + - [BC] Class `Psalm\Issue\NoInterfaceProperties` became final + - [BC] Class `Psalm\Issue\InvalidReturnType` became final + - [BC] Class `Psalm\Issue\MixedArrayTypeCoercion` became final + - [BC] Class `Psalm\Issue\ParadoxicalCondition` became final + - [BC] Class `Psalm\Issue\InvalidToString` became final + - [BC] Class `Psalm\Issue\MethodSignatureMismatch` became final + - [BC] Class `Psalm\Issue\PossiblyFalseOperand` became final + - [BC] Class `Psalm\Issue\UndefinedClass` became final + - [BC] Class `Psalm\Issue\OverriddenInterfaceConstant` became final + - [BC] Class `Psalm\Issue\MissingTemplateParam` became final + - [BC] Class `Psalm\Issue\InvalidArrayOffset` became final + - [BC] Class `Psalm\Issue\MoreSpecificImplementedParamType` became final + - [BC] Class `Psalm\Issue\UninitializedProperty` became final + - [BC] Class `Psalm\Issue\ParseError` became final + - [BC] Class `Psalm\Issue\PossiblyUndefinedStringArrayOffset` became final + - [BC] Class `Psalm\Issue\ExtensionRequirementViolation` became final ## Removed - [BC] Property `Psalm\Codebase::$php_major_version` was removed, use @@ -279,3 +564,4 @@ - :information_source: migration possible using `Psalm\PluginFileExtensionsSocket` - [BC] Method `\Psalm\Plugin\EventHandler\Event\AfterFunctionLikeAnalysisEvent::getClasslikeStorage()` was removed, use correct `\Psalm\Plugin\EventHandler\Event\AfterFunctionLikeAnalysisEvent::getFunctionlikeStorage()` instead +