Skip to content

Mark all classes as readonly#1091

Merged
Slamdunk merged 1 commit into
lcobucci:6.0.xfrom
Slamdunk:readonly_classes
Jan 29, 2025
Merged

Mark all classes as readonly#1091
Slamdunk merged 1 commit into
lcobucci:6.0.xfrom
Slamdunk:readonly_classes

Conversation

@Slamdunk

@Slamdunk Slamdunk commented Dec 4, 2024

Copy link
Copy Markdown
Collaborator

Fix #1086

This PR needs a new 6.0.x branch

@Slamdunk Slamdunk added this to the 6.0.0 milestone Dec 4, 2024
@lcobucci
lcobucci changed the base branch from 5.5.x to 6.0.x December 4, 2024 19:46
Comment thread src/Configuration.php Outdated
Comment thread src/Configuration.php
Comment thread src/Token/Builder.php

@lcobucci lcobucci left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The changes are good, thanks.

I personally don't like the factory method Builder::new() but it's a necessary evil to ensure that we don't have people injecting crazy stuff there.

@Slamdunk

Slamdunk commented Dec 5, 2024

Copy link
Copy Markdown
Collaborator Author

I personally don't like the factory method Builder::new()

This concern is easy to address with new Headers, Header, Claims, RegisteredClaims, UnregisteredClaim, RegisteredClaim objects and so on, but it would probabily be a bit overkill

@Slamdunk
Slamdunk force-pushed the readonly_classes branch 2 times, most recently from 55638e5 to c1daba7 Compare January 29, 2025 07:08
@Slamdunk
Slamdunk merged commit 829cabf into lcobucci:6.0.x Jan 29, 2025
@Slamdunk
Slamdunk deleted the readonly_classes branch January 29, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make Token\Builder really readonly

2 participants