Skip to content

introduce an intention to add @kphp-immutable-class annotation#67

Merged
vldF merged 11 commits intomasterfrom
vldf/add-kphp-immutable-class-intention
Jul 28, 2025
Merged

introduce an intention to add @kphp-immutable-class annotation#67
vldF merged 11 commits intomasterfrom
vldf/add-kphp-immutable-class-intention

Conversation

@vldF
Copy link
Copy Markdown
Contributor

@vldF vldF commented Jul 23, 2025

I have implemented the simplest ever mutability analysis. Probably, we can change its scope to the global one, however, it can lead to some performance issues

Also, the new testing function assertNoIntention was added to the project.

@vldF vldF requested a review from Danil42Russia July 23, 2025 12:09
@vldF vldF self-assigned this Jul 23, 2025
@vldF vldF added the enhancement New feature or request label Jul 23, 2025
@vldF vldF force-pushed the vldf/add-kphp-immutable-class-intention branch 2 times, most recently from d8b8f52 to 19aeb7c Compare July 23, 2025 14:24
@Danil42Russia Danil42Russia changed the title Introduce add @kphp-immutable-class intention Introduce add @kphp-immutable-class intention Jul 23, 2025
@vldF vldF mentioned this pull request Jul 24, 2025
@vldF vldF changed the base branch from master to vldf/refactor-intentions July 24, 2025 07:53
@vldF vldF changed the title Introduce add @kphp-immutable-class intention introduce 'add @kphp-immutable-class' intention Jul 24, 2025
Base automatically changed from vldf/refactor-intentions to master July 24, 2025 13:22
@vldF vldF force-pushed the vldf/add-kphp-immutable-class-intention branch from 320d855 to 2da4b8c Compare July 24, 2025 13:25
@Danil42Russia Danil42Russia linked an issue Jul 24, 2025 that may be closed by this pull request
@vldF vldF changed the title introduce 'add @kphp-immutable-class' intention introduce 'add @kphp-immutable-class' intention Jul 28, 2025
@vldF vldF changed the title introduce 'add @kphp-immutable-class' intention introduce an intention to add @kphp-immutable-class annotation Jul 28, 2025
@vldF vldF merged commit 372ae93 into master Jul 28, 2025
5 checks passed
@vldF vldF deleted the vldf/add-kphp-immutable-class-intention branch July 28, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an intention to add @kphp-immutable-class above the class

3 participants