1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Deprecate legacy hook interfaces (#5898)

Refs vimeo/psalm#4700
This commit is contained in:
Bruce Weirdan 2021-06-07 17:46:56 +03:00 committed by GitHub
parent 86050df4d0
commit 80e8d40013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 31 additions and 0 deletions

View File

@ -55,9 +55,16 @@
<DeprecatedClass>
<errorLevel type="suppress">
<referencedClass name="PackageVersions\Versions"/>
<referencedClass name="Psalm\Plugin\Hook\*" />
</errorLevel>
</DeprecatedClass>
<DeprecatedInterface>
<errorLevel type="suppress">
<referencedClass name="Psalm\Plugin\Hook\*" />
</errorLevel>
</DeprecatedInterface>
<UnusedParam>
<errorLevel type="suppress">
<directory name="examples"/>

View File

@ -5,6 +5,7 @@ use Psalm\Internal\Analyzer\IssueData;
use Psalm\Codebase;
use Psalm\SourceControl\SourceControlInfo;
/** @deprecated going to be removed in Psalm 5 */
interface AfterAnalysisInterface
{
/**

View File

@ -7,6 +7,7 @@ use Psalm\FileManipulation;
use Psalm\StatementsSource;
use Psalm\Storage\ClassLikeStorage;
/** @deprecated going to be removed in Psalm 5 */
interface AfterClassLikeAnalysisInterface
{
/**

View File

@ -6,6 +6,7 @@ use Psalm\CodeLocation;
use Psalm\FileManipulation;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface AfterClassLikeExistenceCheckInterface
{
/**

View File

@ -7,6 +7,7 @@ use Psalm\FileManipulation;
use Psalm\FileSource;
use Psalm\Storage\ClassLikeStorage;
/** @deprecated going to be removed in Psalm 5 */
interface AfterClassLikeVisitInterface
{
/**

View File

@ -3,6 +3,7 @@ namespace Psalm\Plugin\Hook;
use Psalm\Codebase;
/** @deprecated going to be removed in Psalm 5 */
interface AfterCodebasePopulatedInterface
{
/**

View File

@ -6,6 +6,7 @@ use Psalm\Codebase;
use Psalm\Context;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface AfterEveryFunctionCallAnalysisInterface
{
public static function afterEveryFunctionCallAnalysis(

View File

@ -7,6 +7,7 @@ use Psalm\Context;
use Psalm\FileManipulation;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface AfterExpressionAnalysisInterface
{
/**

View File

@ -6,6 +6,7 @@ use Psalm\Context;
use Psalm\StatementsSource;
use Psalm\Storage\FileStorage;
/** @deprecated going to be removed in Psalm 5 */
interface AfterFileAnalysisInterface
{
/**

View File

@ -8,6 +8,7 @@ use Psalm\FileManipulation;
use Psalm\StatementsSource;
use Psalm\Type\Union;
/** @deprecated going to be removed in Psalm 5 */
interface AfterFunctionCallAnalysisInterface
{
/**

View File

@ -7,6 +7,7 @@ use Psalm\FileManipulation;
use Psalm\StatementsSource;
use Psalm\Storage\FunctionLikeStorage;
/** @deprecated going to be removed in Psalm 5 */
interface AfterFunctionLikeAnalysisInterface
{
/**

View File

@ -10,6 +10,7 @@ use Psalm\FileManipulation;
use Psalm\StatementsSource;
use Psalm\Type\Union;
/** @deprecated going to be removed in Psalm 5 */
interface AfterMethodCallAnalysisInterface
{
/**

View File

@ -7,6 +7,7 @@ use Psalm\Context;
use Psalm\FileManipulation;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface AfterStatementAnalysisInterface
{
/**

View File

@ -6,6 +6,7 @@ use Psalm\Context;
use Psalm\StatementsSource;
use Psalm\Storage\FileStorage;
/** @deprecated going to be removed in Psalm 5 */
interface BeforeFileAnalysisInterface
{
/**

View File

@ -3,6 +3,7 @@ namespace Psalm\Plugin\Hook;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface FunctionExistenceProviderInterface
{
/**

View File

@ -6,6 +6,7 @@ use Psalm\CodeLocation;
use Psalm\Context;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface FunctionParamsProviderInterface
{
/**

View File

@ -7,6 +7,7 @@ use Psalm\Context;
use Psalm\StatementsSource;
use Psalm\Type;
/** @deprecated going to be removed in Psalm 5 */
interface FunctionReturnTypeProviderInterface
{
/**

View File

@ -4,6 +4,7 @@ namespace Psalm\Plugin\Hook;
use Psalm\CodeLocation;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface MethodExistenceProviderInterface
{
/**

View File

@ -6,6 +6,7 @@ use Psalm\CodeLocation;
use Psalm\Context;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface MethodParamsProviderInterface
{
/**

View File

@ -7,6 +7,7 @@ use Psalm\Context;
use Psalm\StatementsSource;
use Psalm\Type;
/** @deprecated going to be removed in Psalm 5 */
interface MethodReturnTypeProviderInterface
{
/**

View File

@ -5,6 +5,7 @@ use Psalm\CodeLocation;
use Psalm\Context;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface MethodVisibilityProviderInterface
{
/**

View File

@ -5,6 +5,7 @@ use Psalm\CodeLocation;
use Psalm\Context;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface PropertyExistenceProviderInterface
{
/**

View File

@ -5,6 +5,7 @@ use Psalm\Context;
use Psalm\StatementsSource;
use Psalm\Type;
/** @deprecated going to be removed in Psalm 5 */
interface PropertyTypeProviderInterface
{
/**

View File

@ -5,6 +5,7 @@ use Psalm\CodeLocation;
use Psalm\Context;
use Psalm\StatementsSource;
/** @deprecated going to be removed in Psalm 5 */
interface PropertyVisibilityProviderInterface
{
/**

View File

@ -3,6 +3,7 @@ namespace Psalm\Plugin\Hook;
use Psalm\Type;
/** @deprecated going to be removed in Psalm 5 */
interface StringInterpreterInterface
{
/**