diff --git a/psalm.xml.dist b/psalm.xml.dist index 3a9d963..1be306f 100644 --- a/psalm.xml.dist +++ b/psalm.xml.dist @@ -46,6 +46,7 @@ + diff --git a/src/PhpParserReflector/ClassReflections.php b/src/PhpParserReflector/ClassReflections.php index ec48a37..680f20c 100644 --- a/src/PhpParserReflector/ClassReflections.php +++ b/src/PhpParserReflector/ClassReflections.php @@ -9,11 +9,12 @@ use PhpParser\Node\Stmt\Enum_; use Typhoon\Reflection\ClassReflection; +/** + * @internal + * @psalm-internal Typhoon\Reflection\PhpParserReflector + */ final class ClassReflections { - /** - * @psalm-suppress UnusedConstructor - */ private function __construct() {} /** diff --git a/src/PhpParserReflector/EnumReflections.php b/src/PhpParserReflector/EnumReflections.php index 1c380a5..6bca7f3 100644 --- a/src/PhpParserReflector/EnumReflections.php +++ b/src/PhpParserReflector/EnumReflections.php @@ -10,11 +10,12 @@ use Typhoon\Reflection\Metadata\TypeMetadata; use Typhoon\Type\types; +/** + * @internal + * @psalm-internal Typhoon\Reflection\PhpParserReflector + */ final class EnumReflections { - /** - * @psalm-suppress UnusedConstructor - */ private function __construct() {} /** diff --git a/src/PhpParserReflector/FixNodeStartLineVisitor.php b/src/PhpParserReflector/FixNodeStartLineVisitor.php index 2904d3f..2683ca7 100644 --- a/src/PhpParserReflector/FixNodeStartLineVisitor.php +++ b/src/PhpParserReflector/FixNodeStartLineVisitor.php @@ -7,6 +7,10 @@ use PhpParser\Node; use PhpParser\NodeVisitorAbstract; +/** + * @internal + * @psalm-internal Typhoon\Reflection\PhpParserReflector + */ final class FixNodeStartLineVisitor extends NodeVisitorAbstract { private const START_LINE_ATTRIBUTE = 'startLine'; diff --git a/src/PhpParserReflector/MethodReflections.php b/src/PhpParserReflector/MethodReflections.php index e86808b..a39705f 100644 --- a/src/PhpParserReflector/MethodReflections.php +++ b/src/PhpParserReflector/MethodReflections.php @@ -10,11 +10,12 @@ use PhpParser\NodeTraverser; use PhpParser\NodeVisitorAbstract; +/** + * @internal + * @psalm-internal Typhoon\Reflection\PhpParserReflector + */ final class MethodReflections { - /** - * @psalm-suppress UnusedConstructor - */ private function __construct() {} public static function isGenerator(ClassMethod $node): bool diff --git a/src/PhpParserReflector/NativeTypeReflections.php b/src/PhpParserReflector/NativeTypeReflections.php index bce0cfb..e8bd343 100644 --- a/src/PhpParserReflector/NativeTypeReflections.php +++ b/src/PhpParserReflector/NativeTypeReflections.php @@ -11,11 +11,12 @@ use Typhoon\Type\Type; use Typhoon\Type\types; +/** + * @internal + * @psalm-internal Typhoon\Reflection\PhpParserReflector + */ final class NativeTypeReflections { - /** - * @psalm-suppress UnusedConstructor - */ private function __construct() {} public static function reflect(TypeContext $typeContext, Node $node, bool $implicitlyNullable = false): Type diff --git a/src/PhpParserReflector/ParameterReflections.php b/src/PhpParserReflector/ParameterReflections.php index 8c2804c..69ac5b5 100644 --- a/src/PhpParserReflector/ParameterReflections.php +++ b/src/PhpParserReflector/ParameterReflections.php @@ -8,11 +8,12 @@ use PhpParser\Node\Param; use PhpParser\Node\Stmt\Class_; +/** + * @internal + * @psalm-internal Typhoon\Reflection\PhpParserReflector + */ final class ParameterReflections { - /** - * @psalm-suppress UnusedConstructor - */ private function __construct() {} public static function isPromoted(Param $node): bool diff --git a/src/PhpParserReflector/PropertyReflections.php b/src/PhpParserReflector/PropertyReflections.php index 5096c53..f0afa08 100644 --- a/src/PhpParserReflector/PropertyReflections.php +++ b/src/PhpParserReflector/PropertyReflections.php @@ -8,11 +8,12 @@ use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\Property; +/** + * @internal + * @psalm-internal Typhoon\Reflection\PhpParserReflector + */ final class PropertyReflections { - /** - * @psalm-suppress UnusedConstructor - */ private function __construct() {} /** diff --git a/src/TypeContext/RuntimeExistenceChecker.php b/src/TypeContext/RuntimeExistenceChecker.php index a1f1222..e812269 100644 --- a/src/TypeContext/RuntimeExistenceChecker.php +++ b/src/TypeContext/RuntimeExistenceChecker.php @@ -4,6 +4,10 @@ namespace Typhoon\Reflection\TypeContext; +/** + * @internal + * @psalm-internal Typhoon\Reflection\TypeContext + */ final class RuntimeExistenceChecker implements ConstantExistenceChecker, ClassExistenceChecker { public function constantExists(string $name): bool diff --git a/src/TypeContext/TypeContext.php b/src/TypeContext/TypeContext.php index 9e4ccc5..24e88c8 100644 --- a/src/TypeContext/TypeContext.php +++ b/src/TypeContext/TypeContext.php @@ -11,6 +11,10 @@ use Typhoon\Type\Type; use Typhoon\Type\types; +/** + * @internal + * @psalm-internal Typhoon\Reflection + */ final class TypeContext implements NameResolver { /** diff --git a/tests/unit/FixturesProvider.php b/tests/unit/FixturesProvider.php index 14a4238..a6d54fe 100644 --- a/tests/unit/FixturesProvider.php +++ b/tests/unit/FixturesProvider.php @@ -11,9 +11,6 @@ final class FixturesProvider */ private static ?array $classes = null; - /** - * @psalm-suppress UnusedConstructor - */ private function __construct() {} /**