Uh oh!
There was an error while loading. Please reload this page.
More concrete return type for opcache_get_configuration - #5424
Conversation
VincentLanglet
commented
Apr 7, 2026
Not sure such precision is needed ; wasn't https://github.com/phpstan/phpstan-src/pull/5422/changes enough ? |
staabm
commented
Apr 7, 2026
what the real world use-case/motivation for this change? |
devnix
commented
Apr 7, 2026
Expecting a shape, avoiding unnecessary checks of array keys, reporting typos in array keys... |
I think we can land the change after we added a separate NodeScopeResolverTest in nsrt/. usually we don't enforce nsrt/ tests for changes in does the suggested return-type array-shape also work for PHP7? |
devnix
commented
Apr 9, 2026
@staabm I'm going to carefully review the shape between versions. Just one quick question: if there is any difference, which version should be in |
yes. we only need it in delta-files when there are differences. if php version differences exist, we need multiple nsrt/ tests |
cc18d31 to
710f5a3Comparedevnix
commented
Apr 29, 2026
I think I've got it @staabm, sorry for the delay! |
f2abaae to
736033dCompareUh oh!
There was an error while loading. Please reload this page.
736033d to
54940e6Compare
VincentLanglet
left a comment
There was a problem hiding this comment.
My only worry is for how long the type from PHP8.3 will stay the same...
Uh oh!
There was an error while loading. Please reload this page.
staabm
commented
Apr 30, 2026
Thank you! |
Array shape based on https://github.com/php/php-src/blob/master/ext/opcache/zend_accelerator_module.c#L800-L904