Skip to content

Conversation

kubawerlos
Copy link
Member

@kubawerlos kubawerlos commented Aug 16, 2025

@kubawerlos kubawerlos added kind/cleanup dependencies Pull requests that update a dependency file labels Aug 16, 2025
@kubawerlos kubawerlos changed the title cleanup: remove php-cs-fixer/accessible-object deps: remove php-cs-fixer/accessible-object Aug 16, 2025
@coveralls
Copy link

Coverage Status

coverage: 94.75%. remained the same
when pulling 0f09dfb on 6b7562617765726c6f73:remove_php-cs-fixer_accessible-object
into 90cd6b6 on PHP-CS-Fixer:master.

@kubawerlos kubawerlos enabled auto-merge (squash) August 16, 2025 07:30
@keradus
Copy link
Member

keradus commented Aug 16, 2025

it's our own namespace, we can easily upgrade that lib to what we prefer.
it's more matter if we want custom proxy layer (but imho easier interface), or native proxy layer (but imho non-intuitive approach - but yeah, accessing privates are not clean one way or another).

happy to hear more Heroes

foreach (AccessibleObject::create($transformers)->items as $transformer) {

$items = \Closure::bind(
static fn (Transformers $transformers): array => $transformers->items,
Copy link
Member

Choose a reason for hiding this comment

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

I think I prefer the Closure::bind approach. It is better DX.
E.g., when using "Find usages" in phpstorm for Transformers::items, it finds this place, but not the previous AccessibleObject::create($transformers)->items.

Copy link
Member

Choose a reason for hiding this comment

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

nice argument

@keradus
Copy link
Member

keradus commented Aug 20, 2025

thank you @kubawerlos

@keradus keradus disabled auto-merge August 20, 2025 20:33
@keradus keradus merged commit bfb6fc3 into PHP-CS-Fixer:master Aug 20, 2025
33 checks passed
@keradus keradus deleted the remove_php-cs-fixer_accessible-object branch August 20, 2025 20:33
@keradus keradus restored the remove_php-cs-fixer_accessible-object branch August 20, 2025 20:33
@keradus keradus deleted the remove_php-cs-fixer_accessible-object branch August 20, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file kind/cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants