Repository navigation
Massive Performance Optimization and bug fixes - #137
Merged
Merged
Conversation
…tions and optimizations
…s and static type checks to elimanate return type checking
…to improve performance
…and optimize validation logic
… validation and caching - Introduced new caching mechanisms in MemberAssignChecker for property mutation plans and substituted element contracts. - Enhanced type validation logic in MemberAssignChecker to utilize RuntimeTypeChecker for inline properties and array validation. - Updated RuntimeTypeChecker to support fast-path checks for generic return types and improved handling of inline properties. - Refactored TemplateManager to include compiled binding plan caches for generic types, optimizing template binding processes. - Added support for object generics in GenericValidator, ensuring proper validation of object types. - Enhanced TypeValidatorRegistry to streamline type validation logic for identifiers. - Added tests for handling PHP 8.1+ first-class callable syntax and parameter overwriting scenarios in ParameterTypeTrackingEliminationTest.
…erics performance
…SpecialTypeResolver - Improved type substitution logic to avoid unnecessary object creation when types remain unchanged in TemplateSubstitutor. - Enhanced the resolveWithContext method in SpecialTypeResolver to streamline type resolution with context, reducing redundancy. - Introduced caching mechanisms in CallableWrapper to optimize callable parameter type resolution and reduce repeated parsing. - Simplified the execution of simple scope plans in RuntimeTypeChecker for better performance and readability. - Added reset functionality for CallableWrapper to clear caches effectively.
…eneratorChecker, MemberAssignChecker, TemplateManager, RuntimeTypeChecker, and IterableWrapper for improved performance and reliability
…safety and clarity
…c type bindings and improve property binding propagation
…, improve FunctionContractInjector with elimination checks, and add property dimension assignment checks in RuntimeTypeChecker
…and caching mechanisms, and add ClosureParameterTemplateOverwritingTest to ensure template preservation in closures
…ker, and GenericValidator with improved caching mechanisms, refined template handling, and optimized validation logic for better performance and type safety
- Changed the visibility of `validClassStringCache` in ClassNameValidator to public for better accessibility. - Updated CollectionElementValidator to utilize RuntimeTypeChecker for hybrid validation checks instead of Config. - Added support for new types in CollectionElementValidator: 'object', 'array-key', and 'class-string' with appropriate validation logic. - Enhanced GenericValidator to include detailed array plan handling and improved validation for key-value type arrays. - Updated UnionValidator to streamline type checks and added support for mixed types, arrays, and iterables. - Improved type validation logic in TypeValidatorRegistry to include class-string checks. - Fixed test case to correctly reference TypeError class.
…cks for protected and private constants, and add tests for validation and transformation of constant visibility
…ng logic and removing unused methods for cleaner code
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This was
linked to
issues
Nov 22, 2026
…-string to string for consistency
…olution methods and update CRLF line-drift test for improved readability
…e type validation logic and remove unused SpecialTypeResolver references
…ove cache management
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.