├── .github ├── FUNDING.yml └── workflows │ └── test.yml ├── .gitignore ├── LICENSE.md ├── README.md ├── composer.json ├── extension.neon ├── phpunit.xml ├── src ├── Sealed.php ├── SealedClassAllowedSubTypesClassReflectionExtension.php ├── SealedClassRule.php └── SealedClassUtils.php └── tests ├── SealedClassAllowedSubTypesRuleTest.php ├── SealedClassRuleTest.php ├── SealedClassTypeInferenceTest.php └── data ├── allowed-subtypes-abstract-class.php ├── allowed-subtypes-interface.php ├── allowed-subtypes-non-abstract-class.php ├── non-abstract-sealed-class.php ├── not-direct-subtype.php ├── sealed-class.php └── sealed-interface.php /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: jiripudil 2 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/composer.json -------------------------------------------------------------------------------- /extension.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/extension.neon -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Sealed.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/src/Sealed.php -------------------------------------------------------------------------------- /src/SealedClassAllowedSubTypesClassReflectionExtension.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/src/SealedClassAllowedSubTypesClassReflectionExtension.php -------------------------------------------------------------------------------- /src/SealedClassRule.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/src/SealedClassRule.php -------------------------------------------------------------------------------- /src/SealedClassUtils.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/src/SealedClassUtils.php -------------------------------------------------------------------------------- /tests/SealedClassAllowedSubTypesRuleTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/tests/SealedClassAllowedSubTypesRuleTest.php -------------------------------------------------------------------------------- /tests/SealedClassRuleTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/tests/SealedClassRuleTest.php -------------------------------------------------------------------------------- /tests/SealedClassTypeInferenceTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/tests/SealedClassTypeInferenceTest.php -------------------------------------------------------------------------------- /tests/data/allowed-subtypes-abstract-class.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/tests/data/allowed-subtypes-abstract-class.php -------------------------------------------------------------------------------- /tests/data/allowed-subtypes-interface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/tests/data/allowed-subtypes-interface.php -------------------------------------------------------------------------------- /tests/data/allowed-subtypes-non-abstract-class.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/tests/data/allowed-subtypes-non-abstract-class.php -------------------------------------------------------------------------------- /tests/data/non-abstract-sealed-class.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/tests/data/non-abstract-sealed-class.php -------------------------------------------------------------------------------- /tests/data/not-direct-subtype.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/tests/data/not-direct-subtype.php -------------------------------------------------------------------------------- /tests/data/sealed-class.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/tests/data/sealed-class.php -------------------------------------------------------------------------------- /tests/data/sealed-interface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiripudil/phpstan-sealed-classes/HEAD/tests/data/sealed-interface.php --------------------------------------------------------------------------------