From baa72f08fab036007a206034cd97415db3eae61c Mon Sep 17 00:00:00 2001 From: Michael Telgmann Date: Wed, 6 Nov 2024 11:08:10 +0100 Subject: [PATCH] feat: Add @api annotation to interfaces The following interfaces are now part of the public API and can be safely relied on. - \PHPStan\Symfony\ParameterDefinition - \PHPStan\Symfony\ParameterMap - \PHPStan\Symfony\ServiceDefinition - \PHPStan\Symfony\ServiceMap --- src/Symfony/ParameterDefinition.php | 3 +++ src/Symfony/ParameterMap.php | 3 +++ src/Symfony/ServiceDefinition.php | 3 +++ src/Symfony/ServiceMap.php | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/Symfony/ParameterDefinition.php b/src/Symfony/ParameterDefinition.php index e1aa2eaa..1da7723b 100644 --- a/src/Symfony/ParameterDefinition.php +++ b/src/Symfony/ParameterDefinition.php @@ -2,6 +2,9 @@ namespace PHPStan\Symfony; +/** + * @api + */ interface ParameterDefinition { diff --git a/src/Symfony/ParameterMap.php b/src/Symfony/ParameterMap.php index ff0f5224..0c551635 100644 --- a/src/Symfony/ParameterMap.php +++ b/src/Symfony/ParameterMap.php @@ -5,6 +5,9 @@ use PhpParser\Node\Expr; use PHPStan\Analyser\Scope; +/** + * @api + */ interface ParameterMap { diff --git a/src/Symfony/ServiceDefinition.php b/src/Symfony/ServiceDefinition.php index c7cdcd18..6df34cba 100644 --- a/src/Symfony/ServiceDefinition.php +++ b/src/Symfony/ServiceDefinition.php @@ -2,6 +2,9 @@ namespace PHPStan\Symfony; +/** + * @api + */ interface ServiceDefinition { diff --git a/src/Symfony/ServiceMap.php b/src/Symfony/ServiceMap.php index 6665ede0..bbd2d8a3 100644 --- a/src/Symfony/ServiceMap.php +++ b/src/Symfony/ServiceMap.php @@ -5,6 +5,9 @@ use PhpParser\Node\Expr; use PHPStan\Analyser\Scope; +/** + * @api + */ interface ServiceMap {