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

ReflectionParamter::getClass is deprecated #24037

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Nov 10, 2020

In php8 this starts throwing warnings. And since we use it quite often
we flood the log. This moves it to getType which does the same. Only non
deprecated now.

For #23780

@juliusknorr juliusknorr added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 10, 2020
@MorrisJobke MorrisJobke added 2. developing Work in progress and removed 4. to release Ready to be released and/or waiting for tests to finish labels Nov 10, 2020
In php8 this starts throwing warnings. And since we use it quite often
we flood the log. This moves it to getType which does the same. Only non
deprecated now.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer rullzer force-pushed the enh/reflectionparamter_getclass_deprecatred branch from ec9afad to 51a02c8 Compare November 11, 2020 19:42
@faily-bot
Copy link

faily-bot bot commented Nov 11, 2020

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 35399: failure

mysql5.6-php7.3

Show full log
There was 1 error:

1) OCA\Files_Sharing\Tests\LockingTest::testUnLockAsRecipient
OCP\Files\StorageNotAvailableException: File with id "8431" has not been found.

/drone/src/lib/private/Files/Storage/FailedStorage.php:114
/drone/src/lib/private/Files/Storage/Wrapper/Jail.php:235
/drone/src/lib/private/Files/View.php:1167
/drone/src/lib/private/Files/View.php:543
/drone/src/lib/private/Files/Filesystem.php:701
/drone/src/apps/files_sharing/tests/LockingTest.php:75

Caused by
OCP\Files\NotFoundException: File with id "8431" has not been found.

/drone/src/lib/private/Files/View.php:1768
/drone/src/apps/files_sharing/lib/SharedStorage.php:130
/drone/src/apps/files_sharing/lib/SharedStorage.php:487
/drone/src/lib/private/Files/Storage/Wrapper/Jail.php:235
/drone/src/lib/private/Files/View.php:1167
/drone/src/lib/private/Files/View.php:543
/drone/src/lib/private/Files/Filesystem.php:701
/drone/src/apps/files_sharing/tests/LockingTest.php:75

--

There were 2 warnings:

1) Test\Files\ViewTest::testRenameFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static

2) Test\Files\ViewTest::testCopyFailDeleteTargetKeepSource
Trying to configure method "writeStream" which cannot be configured because it does not exist, has not been specified, is final, or is static

@rullzer rullzer added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Nov 11, 2020
@rullzer rullzer merged commit c2588b0 into master Nov 11, 2020
@rullzer rullzer deleted the enh/reflectionparamter_getclass_deprecatred branch November 11, 2020 20:53
@danxuliu
Copy link
Member

This causes BackendNotifier unit tests in Talk to fail with:

OCP\AppFramework\QueryException: Could not resolve urlGenerator! Class urlGenerator does not exist

/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:115
/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:126
/var/www/html/lib/private/ServerContainer.php:162
/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:96
/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:101
/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:109
/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:126
/var/www/html/lib/private/ServerContainer.php:162
/var/www/html/tests/lib/TestCase.php:60
/var/www/html/apps/spreed/tests/php/Signaling/BackendNotifierTest.php:136

Does something need to be adjusted in Talk now? Or does it need to be fixed here?

@rullzer
Copy link
Member Author

rullzer commented Nov 13, 2020

This causes BackendNotifier unit tests in Talk to fail with:

OCP\AppFramework\QueryException: Could not resolve urlGenerator! Class urlGenerator does not exist

/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:115
/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:126
/var/www/html/lib/private/ServerContainer.php:162
/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:96
/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:101
/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:109
/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php:126
/var/www/html/lib/private/ServerContainer.php:162
/var/www/html/tests/lib/TestCase.php:60
/var/www/html/apps/spreed/tests/php/Signaling/BackendNotifierTest.php:136

Does something need to be adjusted in Talk now? Or does it need to be fixed here?

good question let me check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants