diff --git a/CHANGELOG.md b/CHANGELOG.md index b9e3c81..9879ad6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +* Added @phpstan-require-implements constraints * Updated Veneer dependency and Stub ## v0.3.7 (2024-07-31) diff --git a/src/Resolver/DefaultNameTrait.php b/src/Resolver/DefaultNameTrait.php index df0bb14..2f7301b 100644 --- a/src/Resolver/DefaultNameTrait.php +++ b/src/Resolver/DefaultNameTrait.php @@ -9,6 +9,9 @@ namespace DecodeLabs\Archetype\Resolver; +/** + * @phpstan-require-implements DefaultName + */ trait DefaultNameTrait { /** diff --git a/src/Resolver/ScannerTrait.php b/src/Resolver/ScannerTrait.php index e31d6d4..6c426be 100644 --- a/src/Resolver/ScannerTrait.php +++ b/src/Resolver/ScannerTrait.php @@ -15,6 +15,9 @@ use RecursiveDirectoryIterator; use RecursiveIteratorIterator; +/** + * @phpstan-require-implements Scanner + */ trait ScannerTrait { /** diff --git a/src/ResolverTrait.php b/src/ResolverTrait.php index 08cfc38..f0696db 100644 --- a/src/ResolverTrait.php +++ b/src/ResolverTrait.php @@ -9,6 +9,9 @@ namespace DecodeLabs\Archetype; +/** + * @phpstan-require-implements Resolver + */ trait ResolverTrait { protected NamespaceMap $namespaces;