Skip to content

Massive Performance Optimization and bug fixes - #137

Merged
rcalicdan merged 25 commits into
mainfrom
internal-improvements-50
Nov 22, 2026
Merged

rcalicdan merged 25 commits into
mainfrom
internal-improvements-50

Conversation

@rcalicdan

Copy link
Copy Markdown
Member

No description provided.

…s and static type checks to elimanate return type checking
… 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.
…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
…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
…olution methods and update CRLF line-drift test for improved readability
@rcalicdan rcalicdan self-assigned this Nov 22, 2026
…e type validation logic and remove unused SpecialTypeResolver references
@rcalicdan
rcalicdan merged commit bcfd1ce into main Nov 22, 2026
18 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

1 participant