Skip to content

More concrete return type for opcache_get_configuration#5424

Open
devnix wants to merge 1 commit intophpstan:2.1.xfrom
devnix:opcache_get_configuration
Open

More concrete return type for opcache_get_configuration#5424
devnix wants to merge 1 commit intophpstan:2.1.xfrom
devnix:opcache_get_configuration

Conversation

@devnix
Copy link
Copy Markdown
Contributor

@devnix devnix commented Apr 7, 2026

@VincentLanglet
Copy link
Copy Markdown
Contributor

Not sure such precision is needed ; wasn't https://github.com/phpstan/phpstan-src/pull/5422/changes enough ?
Dunno what you think about it @staabm ; this would make a huge constant array (which are often simplified)

@staabm
Copy link
Copy Markdown
Contributor

staabm commented Apr 7, 2026

what the real world use-case/motivation for this change?

@devnix
Copy link
Copy Markdown
Contributor Author

devnix commented Apr 7, 2026

Expecting a shape, avoiding unnecessary checks of array keys, reporting typos in array keys...

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