From a29fdfce56da0cd0f8fd7e8c5a903bb9105d2eb9 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 1 Jan 2024 22:06:07 +0000 Subject: [PATCH] class leak --- .github/workflows/code_analysis.yaml | 10 +--------- composer.json | 5 +++-- src/Contract/SerializableInterface.php | 3 +++ 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index 55c4b3b..8b2f096 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -6,10 +6,6 @@ on: branches: - main -env: - # see https://github.com/composer/composer/issues/9368#issuecomment-718112361 - COMPOSER_ROOT_VERSION: "dev-main" - jobs: code_analysis: strategy: @@ -40,13 +36,9 @@ jobs: name: 'PHP Linter' run: vendor/bin/parallel-lint src tests - - - name: 'Check Commented Code' - run: vendor/bin/easy-ci check-commented-code src tests --ansi - - name: 'Check Active Classes' - run: vendor/bin/easy-ci check-active-class src --ansi + run: vendor/bin/class-leak check src --ansi name: ${{ matrix.actions.name }} runs-on: ubuntu-latest diff --git a/composer.json b/composer.json index a6d8297..1ef03f2 100644 --- a/composer.json +++ b/composer.json @@ -13,11 +13,12 @@ "symfony/console": "^6.2|^7.0" }, "require-dev": { - "phpunit/phpunit": "^10.5", "phpstan/extension-installer": "^1.3", + "phpunit/phpunit": "^10.5", "rector/rector": "^0.18.13", "symplify/easy-coding-standard": "^12.0", - "symplify/phpstan-extensions": "^11.4" + "symplify/phpstan-extensions": "^11.4", + "tomasvotruba/class-leak": "^0.2.6" }, "autoload": { "psr-4": { diff --git a/src/Contract/SerializableInterface.php b/src/Contract/SerializableInterface.php index 5410e67..2ec4853 100644 --- a/src/Contract/SerializableInterface.php +++ b/src/Contract/SerializableInterface.php @@ -6,6 +6,9 @@ use JsonSerializable; +/** + * @api + */ interface SerializableInterface extends JsonSerializable { /**