Skip to content

refactor(processor-builder): apply readonly property to enhance immut… #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

walmir-silva
Copy link
Contributor

…ability

  • Marked the $registry property as readonly to ensure immutability and prevent modification after construction.
  • Improved code readability and reliability by enforcing immutability for the ProcessorRegistry dependency.
  • This change provides minor performance improvements due to reduced internal checks and supports better optimization opportunities by PHP.

…ability

- Marked the $registry property as readonly to ensure immutability and prevent modification after construction.
- Improved code readability and reliability by enforcing immutability for the ProcessorRegistry dependency.
- This change provides minor performance improvements due to reduced internal checks and supports better optimization opportunities by PHP.
@walmir-silva walmir-silva merged commit 1b9e3e7 into main Oct 14, 2024
1 check failed
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