Skip to content

Support stringNode in Config component#459

Open
emodric wants to merge 1 commit into
phpstan:2.0.xfrom
emodric:string_node
Open

Support stringNode in Config component#459
emodric wants to merge 1 commit into
phpstan:2.0.xfrom
emodric:string_node

Conversation

@emodric

@emodric emodric commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

Symfony 7.2 added >stringNode() method to NodeBuilder.

@staabm staabm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Misses a test

private const PROTOTYPE_METHODS = [
'arrayPrototype',
'scalarPrototype',
'stringPrototype',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Indent seems off (also in other files)

@emodric

emodric commented Nov 11, 2025

Copy link
Copy Markdown
Contributor Author

@staabm I've fixed the indentation issue and I've tried adding a test, but it turns out that tests do not support Symfony 7.

I'll leave this up once this lib gets up to Symfony 7.

@stof

stof commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

In Symfony 7.4, we have conditional return types in Symfony itself that should make this return type extension useless. It might be better to disable it for new Symfony versions to benefit from the upstream work.

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.

3 participants