Skip to content

Internal improvements 9 - #34

Merged
rcalicdan merged 13 commits into
mainfrom
internal-improvements-9
Aug 17, 2026
Merged

Internal improvements 9#34
rcalicdan merged 13 commits into
mainfrom
internal-improvements-9

Conversation

@rcalicdan

Copy link
Copy Markdown
Member
  • Major bug fixes
  • Improve generics documentations
  • Improve internal code quality by refactoring code to adhere to SRP
  • Improve test coverage

…leService and enhance tests for type validation
… methods and improve unit tests for better coverage
…ed handling of hooks and docblock annotations

- Simplified the process of skipping injection for properties with no hooks or specific ignore tags in PropertyHookInjector.
- Extracted logic for processing 'get' and 'set' hooks into separate methods for better readability and maintainability.
- Enhanced tests for PropertyHookInjector to cover various scenarios including handling of ignore tags and custom parameter names.
- Updated FunctionContractInjector tests to ensure proper injection of checks based on docblock annotations, including support for generator functions and lifecycle methods.
- Improved test structure for clarity and consistency across different scenarios.
… for function, property, and magic method parsing
- Updated ContractParserTest to enhance readability by adding line breaks for better separation of assertions.
- Enhanced SpecialTypeResolverTest with additional test cases for handling $this identity checks and resolving special identifier keywords.
- Improved TemplateManagerTest by restructuring tests into descriptive groups, adding tests for inherited template resolution, and validating variance rules.
- Expanded TemplateSubstitutorTest to include substitutions for CallableTypeNode, ConditionalTypeNode, and ObjectShapeNode, ensuring comprehensive coverage of template placeholder substitutions.
…eadability in the callable type substitution test
@rcalicdan
rcalicdan merged commit b9f00e6 into main Aug 17, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant