Skip to content

Commit

Permalink
class leak
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 1, 2024
1 parent abedc49 commit a29fdfc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions src/Contract/SerializableInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use JsonSerializable;

/**
* @api
*/
interface SerializableInterface extends JsonSerializable
{
/**
Expand Down

0 comments on commit a29fdfc

Please sign in to comment.