Skip to content
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

Add support for readonly classes #147

Merged
merged 2 commits into from
Nov 21, 2022

Conversation

IonBazan
Copy link
Contributor

@IonBazan IonBazan commented Oct 21, 2022

Q A
Documentation no
Bugfix no
BC Break no
New Feature yes
RFC no
QA no

Description

This change adds support for readonly classes generation (PHP 8.2 and up).
It also adds support for final classes generation from ClassReflection (not sure why it was skipped earlier).

Added PHP 8.2 to the build matrix and composer.json - tests are passing.

See: #142

@IonBazan IonBazan force-pushed the feature/readonly-class branch from f4e843b to f8b0360 Compare October 21, 2022 05:04
@IonBazan IonBazan force-pushed the feature/readonly-class branch from f8b0360 to 0f49852 Compare November 2, 2022 15:58
@glo71317
Copy link
Contributor

Hello @Ocramius, I have went through PR and found this PR is supporting PHP8.2, Hence My PR will not be required #151
If possible pls merge this PR on priority after reviewing and release because all tests are green for this and looks fine so that it will be available for community users and i am closing My PR

@fezfez
Copy link
Contributor

fezfez commented Nov 20, 2022

@IonBazan could you rebase on 4.8.x ?

@fezfez fezfez mentioned this pull request Nov 20, 2022
@IonBazan IonBazan force-pushed the feature/readonly-class branch from 0f49852 to 29c93c0 Compare November 20, 2022 14:54
@Ocramius Ocramius force-pushed the feature/readonly-class branch from 1231f15 to 76aa40b Compare November 21, 2022 06:04
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased, thanks @IonBazan!

This new test limits itself to verifying the semantics
around `final` class creation, and it isn't really a problem
to rely on the deprecated API in here (for now).

Signed-off-by: Marco Pivetta <[email protected]>
@Ocramius Ocramius merged commit 10948d5 into laminas:4.8.x Nov 21, 2022
@Ocramius Ocramius changed the title Add support for readonly classes Add support for readonly classes Nov 21, 2022
@IonBazan IonBazan deleted the feature/readonly-class branch November 21, 2022 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants