Skip to content

Zend/tests: merge constant_expressions into constexpr, update names - #17872

Merged
Girgias merged 1 commit into
php:masterfrom
DanielEScherzer:tests-constexpr
Feb 21, 2025
Merged

Zend/tests: merge constant_expressions into constexpr, update names#17872
Girgias merged 1 commit into
php:masterfrom
DanielEScherzer:tests-constexpr

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Member

While reviewing the existing tests in the constexpr directory, I found that some of the names were not updated to reflect the contents when the contents were changed in #9301.

Follow-up to #15638

While reviewing the existing tests in the `constexpr` directory, I found that
some of the names were not updated to reflect the contents when the contents
were changed in php#9301.

Follow-up to php#15638
@DanielEScherzer

Copy link
Copy Markdown
Member Author

CC @TimWolla who caught the duplicate directories

@TimWolla TimWolla left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I leave the actual review to @Girgias who I believe has reviewed the previous ones.

@@ -1,5 +1,5 @@
--TEST--
Invalid operation in new arg in const expr
Valid operation in new arg in const expr

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This one is interesting, because AFAICT it no longer is a constexpr context since https://wiki.php.net/rfc/arbitrary_static_variable_initializers

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Indeed, guess I forgot to update the test description.

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems sensible

@Girgias
Girgias merged commit 7b8a61a into php:master Feb 21, 2025
@DanielEScherzer
DanielEScherzer deleted the tests-constexpr branch February 21, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants