├── .github ├── FUNDING.yml └── workflows │ └── all_tests.yml ├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── doc ├── Assert.md ├── AssertIfFalse.md ├── AssertIfTrue.md ├── DefineType.md ├── Deprecated.md ├── Immutable.md ├── ImportType.md ├── Impure.md ├── Internal.md ├── IsReadOnly.md ├── Method.md ├── Mixin.md ├── Param.md ├── ParamOut.md ├── Property.md ├── PropertyRead.md ├── PropertyWrite.md ├── Pure.md ├── RequireExtends.md ├── RequireImplements.md ├── Returns.md ├── SelfOut.md ├── Template.md ├── TemplateContravariant.md ├── TemplateCovariant.md ├── TemplateExtends.md ├── TemplateImplements.md ├── TemplateUse.md ├── Throws.md └── Type.md ├── ecs.php ├── phpstan.neon ├── phpunit.xml ├── psalm.xml ├── src ├── Assert.php ├── AssertIfFalse.php ├── AssertIfTrue.php ├── DefineType.php ├── Deprecated.php ├── Immutable.php ├── ImportType.php ├── Impure.php ├── Internal.php ├── IsReadOnly.php ├── Method.php ├── Mixin.php ├── Param.php ├── ParamOut.php ├── Property.php ├── PropertyRead.php ├── PropertyWrite.php ├── Pure.php ├── RequireExtends.php ├── RequireImplements.php ├── Returns.php ├── SelfOut.php ├── Template.php ├── TemplateContravariant.php ├── TemplateCovariant.php ├── TemplateExtends.php ├── TemplateImplements.php ├── TemplateUse.php ├── Throws.php └── Type.php └── tests ├── AssertIfFalseTest.php ├── AssertIfTrueTest.php ├── AssertTest.php ├── AttributeHelper.php ├── DefineTypeTest.php ├── DeprecatedTest.php ├── ImmutableTest.php ├── ImportTypeTest.php ├── ImpureTest.php ├── IsReadOnlyTest.php ├── MethodTest.php ├── MixinTest.php ├── ParamOutTest.php ├── ParamTest.php ├── PropertyReadTest.php ├── PropertyTest.php ├── PropertyWriteTest.php ├── PureTest.php ├── RequireExtendsTest.php ├── RequireImplementsTest.php ├── ReturnsTest.php ├── SelfOutTest.php ├── TemplateContravariantTest.php ├── TemplateCovariantTest.php ├── TemplateExtendsTest.php ├── TemplateImplementsTest.php ├── TemplateTest.php ├── TemplateUseTest.php ├── ThrowsTest.php └── TypeTest.php /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [carlos-granados] 2 | -------------------------------------------------------------------------------- /.github/workflows/all_tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/.github/workflows/all_tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor/ 2 | composer.lock 3 | .phpunit.cache 4 | .idea 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/composer.json -------------------------------------------------------------------------------- /doc/Assert.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Assert.md -------------------------------------------------------------------------------- /doc/AssertIfFalse.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/AssertIfFalse.md -------------------------------------------------------------------------------- /doc/AssertIfTrue.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/AssertIfTrue.md -------------------------------------------------------------------------------- /doc/DefineType.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/DefineType.md -------------------------------------------------------------------------------- /doc/Deprecated.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Deprecated.md -------------------------------------------------------------------------------- /doc/Immutable.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Immutable.md -------------------------------------------------------------------------------- /doc/ImportType.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/ImportType.md -------------------------------------------------------------------------------- /doc/Impure.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Impure.md -------------------------------------------------------------------------------- /doc/Internal.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Internal.md -------------------------------------------------------------------------------- /doc/IsReadOnly.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/IsReadOnly.md -------------------------------------------------------------------------------- /doc/Method.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Method.md -------------------------------------------------------------------------------- /doc/Mixin.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Mixin.md -------------------------------------------------------------------------------- /doc/Param.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Param.md -------------------------------------------------------------------------------- /doc/ParamOut.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/ParamOut.md -------------------------------------------------------------------------------- /doc/Property.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Property.md -------------------------------------------------------------------------------- /doc/PropertyRead.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/PropertyRead.md -------------------------------------------------------------------------------- /doc/PropertyWrite.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/PropertyWrite.md -------------------------------------------------------------------------------- /doc/Pure.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Pure.md -------------------------------------------------------------------------------- /doc/RequireExtends.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/RequireExtends.md -------------------------------------------------------------------------------- /doc/RequireImplements.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/RequireImplements.md -------------------------------------------------------------------------------- /doc/Returns.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Returns.md -------------------------------------------------------------------------------- /doc/SelfOut.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/SelfOut.md -------------------------------------------------------------------------------- /doc/Template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Template.md -------------------------------------------------------------------------------- /doc/TemplateContravariant.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/TemplateContravariant.md -------------------------------------------------------------------------------- /doc/TemplateCovariant.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/TemplateCovariant.md -------------------------------------------------------------------------------- /doc/TemplateExtends.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/TemplateExtends.md -------------------------------------------------------------------------------- /doc/TemplateImplements.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/TemplateImplements.md -------------------------------------------------------------------------------- /doc/TemplateUse.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/TemplateUse.md -------------------------------------------------------------------------------- /doc/Throws.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Throws.md -------------------------------------------------------------------------------- /doc/Type.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/doc/Type.md -------------------------------------------------------------------------------- /ecs.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/ecs.php -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/phpstan.neon -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/phpunit.xml -------------------------------------------------------------------------------- /psalm.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/psalm.xml -------------------------------------------------------------------------------- /src/Assert.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Assert.php -------------------------------------------------------------------------------- /src/AssertIfFalse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/AssertIfFalse.php -------------------------------------------------------------------------------- /src/AssertIfTrue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/AssertIfTrue.php -------------------------------------------------------------------------------- /src/DefineType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/DefineType.php -------------------------------------------------------------------------------- /src/Deprecated.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Deprecated.php -------------------------------------------------------------------------------- /src/Immutable.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Immutable.php -------------------------------------------------------------------------------- /src/ImportType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/ImportType.php -------------------------------------------------------------------------------- /src/Impure.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Impure.php -------------------------------------------------------------------------------- /src/Internal.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Internal.php -------------------------------------------------------------------------------- /src/IsReadOnly.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/IsReadOnly.php -------------------------------------------------------------------------------- /src/Method.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Method.php -------------------------------------------------------------------------------- /src/Mixin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Mixin.php -------------------------------------------------------------------------------- /src/Param.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Param.php -------------------------------------------------------------------------------- /src/ParamOut.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/ParamOut.php -------------------------------------------------------------------------------- /src/Property.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Property.php -------------------------------------------------------------------------------- /src/PropertyRead.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/PropertyRead.php -------------------------------------------------------------------------------- /src/PropertyWrite.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/PropertyWrite.php -------------------------------------------------------------------------------- /src/Pure.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Pure.php -------------------------------------------------------------------------------- /src/RequireExtends.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/RequireExtends.php -------------------------------------------------------------------------------- /src/RequireImplements.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/RequireImplements.php -------------------------------------------------------------------------------- /src/Returns.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Returns.php -------------------------------------------------------------------------------- /src/SelfOut.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/SelfOut.php -------------------------------------------------------------------------------- /src/Template.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Template.php -------------------------------------------------------------------------------- /src/TemplateContravariant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/TemplateContravariant.php -------------------------------------------------------------------------------- /src/TemplateCovariant.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/TemplateCovariant.php -------------------------------------------------------------------------------- /src/TemplateExtends.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/TemplateExtends.php -------------------------------------------------------------------------------- /src/TemplateImplements.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/TemplateImplements.php -------------------------------------------------------------------------------- /src/TemplateUse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/TemplateUse.php -------------------------------------------------------------------------------- /src/Throws.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Throws.php -------------------------------------------------------------------------------- /src/Type.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/src/Type.php -------------------------------------------------------------------------------- /tests/AssertIfFalseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/AssertIfFalseTest.php -------------------------------------------------------------------------------- /tests/AssertIfTrueTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/AssertIfTrueTest.php -------------------------------------------------------------------------------- /tests/AssertTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/AssertTest.php -------------------------------------------------------------------------------- /tests/AttributeHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/AttributeHelper.php -------------------------------------------------------------------------------- /tests/DefineTypeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/DefineTypeTest.php -------------------------------------------------------------------------------- /tests/DeprecatedTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/DeprecatedTest.php -------------------------------------------------------------------------------- /tests/ImmutableTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/ImmutableTest.php -------------------------------------------------------------------------------- /tests/ImportTypeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/ImportTypeTest.php -------------------------------------------------------------------------------- /tests/ImpureTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/ImpureTest.php -------------------------------------------------------------------------------- /tests/IsReadOnlyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/IsReadOnlyTest.php -------------------------------------------------------------------------------- /tests/MethodTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/MethodTest.php -------------------------------------------------------------------------------- /tests/MixinTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/MixinTest.php -------------------------------------------------------------------------------- /tests/ParamOutTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/ParamOutTest.php -------------------------------------------------------------------------------- /tests/ParamTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/ParamTest.php -------------------------------------------------------------------------------- /tests/PropertyReadTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/PropertyReadTest.php -------------------------------------------------------------------------------- /tests/PropertyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/PropertyTest.php -------------------------------------------------------------------------------- /tests/PropertyWriteTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/PropertyWriteTest.php -------------------------------------------------------------------------------- /tests/PureTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/PureTest.php -------------------------------------------------------------------------------- /tests/RequireExtendsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/RequireExtendsTest.php -------------------------------------------------------------------------------- /tests/RequireImplementsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/RequireImplementsTest.php -------------------------------------------------------------------------------- /tests/ReturnsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/ReturnsTest.php -------------------------------------------------------------------------------- /tests/SelfOutTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/SelfOutTest.php -------------------------------------------------------------------------------- /tests/TemplateContravariantTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/TemplateContravariantTest.php -------------------------------------------------------------------------------- /tests/TemplateCovariantTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/TemplateCovariantTest.php -------------------------------------------------------------------------------- /tests/TemplateExtendsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/TemplateExtendsTest.php -------------------------------------------------------------------------------- /tests/TemplateImplementsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/TemplateImplementsTest.php -------------------------------------------------------------------------------- /tests/TemplateTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/TemplateTest.php -------------------------------------------------------------------------------- /tests/TemplateUseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/TemplateUseTest.php -------------------------------------------------------------------------------- /tests/ThrowsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/ThrowsTest.php -------------------------------------------------------------------------------- /tests/TypeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/php-static-analysis/attributes/HEAD/tests/TypeTest.php --------------------------------------------------------------------------------