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 38157f9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
14 changes: 1 addition & 13 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 All @@ -36,17 +32,9 @@ jobs:
name: 'Tests'
run: vendor/bin/phpunit

-
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ composer.lock
/vendor

.phpunit.result.cache
.phpunit.cache
.phpunit.cache
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 38157f9

Please sign in to comment.