# AppSourceCop Error AS0148
An interface method was made required without first being marked [RequiredPending].
## Description
When transitioning an optional (default) interface method to required, the method must first be marked with [RequiredPending] in a prior version. This gives consumers advance notice before the breaking change takes effect.
## Remarks
This error is raised when a default (optional) interface method in the baseline version has been changed to a required method (body removed) without first being marked with `[RequiredPending]`.
Making an optional method required is a breaking change for dependent extensions; the dependent extension must implement the method or it won't compile. The `[RequiredPending]` attribute provides a warning period so implementors can add their implementation before it becomes mandatory.
This rule enforces the two-phase lifecycle for interface methods:
1. Phase 1: Add `[RequiredPending]` to the default method. Implementors receive a compiler warning (AL0924) but their code continues to compile.
2. Phase 2: In a later major version, remove the body to make the method required.
When both AS0148 and appsourcecop-as0149 fires on the same interface, AS0149 is suppressed because this error is more actionable.
## How to fix this diagnostic?
Restore the method's body (making it a default method again) and add the `[RequiredPending]` attribute:
```al
interface IMyInterface
{
    [RequiredPending('This method will become required. Add your implementation now.', '26.0')]
    procedure MyMethod(): Text
    begin
        exit('default');
    end;
}
```
In a subsequent major version, you can remove the body and the attribute to make the method required.
Learn more about the recommended lifecycle in ../devenv-interface-method-lifecycle.
## Related information
Getting started with AL<../devenv-get-started>
Developing extensions<../devenv-dev-overview>
../attributes/devenv-requiredpending-attribute
Analyzer rule AS0149<appsourcecop-as0149>
Analyzer rule AS0066<appsourcecop-as0066>
../devenv-interface-method-lifecycle
AppSourceCop analyzer<appsourcecop>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/appsourcecop-as0148, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0148/
