Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.2 - complete dynamic properties for library/Zend #291

Merged

Conversation

hungtrinh
Copy link

Complete "What Next" section in PR #289

Fix bug PHP 8.2: Dynamic Properties are deprecated' for library/Zend/**

@hungtrinh hungtrinh changed the title PHP 82 complete dynamic properties for library PHP 8.2 - complete dynamic properties for library Nov 28, 2022
@hungtrinh hungtrinh changed the title PHP 8.2 - complete dynamic properties for library PHP 8.2 - complete dynamic properties for library/Zend Nov 28, 2022
@@ -39,6 +39,13 @@
*/
class Zend_View_Helper_Placeholder_Registry
{
/**
* View object
*
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove trailing whitespace

Copy link
Collaborator

Choose a reason for hiding this comment

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

trailing space is still there

Copy link
Author

Choose a reason for hiding this comment

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

Now, I fixed here hungtrinh@f269ec7

@@ -29,6 +29,13 @@
*/
class Zend_Form_DisplayGroup implements Iterator,Countable
{
/**
* Element Id
*
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove trailing space

Copy link
Collaborator

Choose a reason for hiding this comment

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

trailing space is still there

Copy link
Author

Choose a reason for hiding this comment

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

I fixed here hungtrinh@28b4a91

@hungtrinh hungtrinh force-pushed the php82-complete-dynamic-properties-for-library branch from 87bd9e4 to 55227b4 Compare November 29, 2022 06:30
@hungtrinh hungtrinh marked this pull request as draft November 29, 2022 06:52
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Amf/AllTests.php
Zend_Cloud_Infrastructure_Adapter_Ec2Test::main()

Have two options to fix similar issue:
- Remove code call undefine method xxxTest::main(). (simple and don't have any bad effect)
- Make sure on top of file xxxTest.php define const like that https://github.com/Shardj/zf1-future/blob/713e3f4e3a8779a7dd983b17260949cf4adec99d/tests/Zend/LoaderTest.php#L29-L31. Body of class xxxTest has method main() like that https://github.com/Shardj/zf1-future/blob/713e3f4e3a8779a7dd983b17260949cf4adec99d/tests/Zend/LoaderTest.php#L78-L82
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Cloud/Infrastructure/Adapter/Ec2Test.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Crypt/Rsa/AllTests.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Db/AllTests.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/EventManager/AllTests.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Filter/AllTests.php
@hungtrinh hungtrinh force-pushed the php82-complete-dynamic-properties-for-library branch from 55227b4 to 77b6005 Compare November 29, 2022 07:56
@hungtrinh hungtrinh marked this pull request as ready for review November 29, 2022 08:11
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Form/AllTests.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Gdata/SpreadsheetsTest.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Http/AllTests.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Json/AllTests.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Loader/AllTests.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Mail/AllTests.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/View/AllTests.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/TimeSyncTest.php
Zend_XmlRpc_ServerTest::main()

Have two options to fix similar issue:
- Remove code call undefine method xxxTest::main(). (simple and don't have any bad effect)
- Make sure on top of file xxxTest.php define const like that https://github.com/Shardj/zf1-future/blob/713e3f4e3a8779a7dd983b17260949cf4adec99d/tests/Zend/LoaderTest.php#L29-L31. Body of class xxxTest has method main() like that https://github.com/Shardj/zf1-future/blob/713e3f4e3a8779a7dd983b17260949cf4adec99d/tests/Zend/LoaderTest.php#L78-L82
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/XmlRpc/ServerTest.php
hungtrinh and others added 3 commits November 30, 2022 00:11
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Pdf/AllTests.php
PHP 8.2: Dynamic Properties are deprecated fix

Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated

Root cause here: https://github.com/Shardj/zf1-future/blob/713e3f4e3a8779a7dd983b17260949cf4adec99d/library/Zend/Service/Audioscrobbler.php#L204-L206

Verified by:
docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Service/Audioscrobbler/AllTests.php
@hungtrinh hungtrinh force-pushed the php82-complete-dynamic-properties-for-library branch from 77b6005 to ae901d0 Compare November 29, 2022 17:14
@glensc glensc merged commit 66f96b4 into Shardj:master Nov 29, 2022
@glensc
Copy link
Collaborator

glensc commented Nov 29, 2022

Thanks. Hard work it is!

falkenhawk pushed a commit to zf1s/zf1 that referenced this pull request May 18, 2023
falkenhawk pushed a commit to zf1s/zf1 that referenced this pull request Jan 3, 2024
falkenhawk pushed a commit to zf1s/zend-amf that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-cloud that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-crypt that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-db that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-eventmanager that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-filter that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-form that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-gdata that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-http that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-json that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-loader that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-mail that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-pdf that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-search-lucene that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-service that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-service-amazon that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-service-yahoo that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-timesync that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-tool that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-view that referenced this pull request Jan 4, 2024
falkenhawk pushed a commit to zf1s/zend-xmlrpc that referenced this pull request Jan 4, 2024
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.

2 participants