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

fix(psalm): Add all missing stubs #3225

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Conversation

provokateurin
Copy link
Member

@provokateurin provokateurin commented Sep 15, 2024

Generated using https://github.com/provokateurin/php-stubs-updater with this command: update-stubs.php tests/stubs ../../3rdparty/doctrine/dbal/ ../../3rdparty/icewind/streams/ ../../3rdparty/symfony/console/ ../../3rdparty/stecman/symfony-console-completion/ ../../lib/ ../../tests/lib/ ../../core/ ../dav/lib/ ../settings/lib/ ../circles/lib/ ../files/lib/ ../files_versions/lib/ ../files_trashbin/lib/ ../files_sharing/lib/

Not sure if we should backport this, all the bugs it found do not lead to any runtime errors.

@provokateurin provokateurin added bug 3. to review Items that need to be reviewed labels Sep 15, 2024
@provokateurin provokateurin added this to the Nextcloud 31 milestone Sep 15, 2024
@provokateurin provokateurin requested review from a team, icewind1991, yemkareems and sorbaugh and removed request for a team September 15, 2024 14:59
@provokateurin provokateurin force-pushed the fix/psalm/missing-stubs branch 2 times, most recently from 39ef14d to e5b02a0 Compare September 15, 2024 16:30
lib/ACL/ACLCacheWrapper.php Show resolved Hide resolved
lib/AppInfo/Application.php Show resolved Hide resolved
lib/DAV/GroupFoldersHome.php Show resolved Hide resolved
lib/Folder/FolderManager.php Show resolved Hide resolved
lib/Mount/GroupFolderNoEncryptionStorage.php Outdated Show resolved Hide resolved
@provokateurin provokateurin force-pushed the fix/psalm/missing-stubs branch from e5b02a0 to c88c16e Compare September 16, 2024 08:54
@provokateurin provokateurin force-pushed the fix/psalm/missing-stubs branch 3 times, most recently from e765022 to 9a4a569 Compare September 16, 2024 09:30
@provokateurin
Copy link
Member Author

Sorry for the mess 😓

Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurin provokateurin force-pushed the fix/psalm/missing-stubs branch from 9a4a569 to 70099f4 Compare September 16, 2024 10:34
@provokateurin
Copy link
Member Author

And one more to make reuse happy :/

@icewind1991
Copy link
Member

the 3rdparty libs should probably be added as dev-dependency instead of adding them as stubs

@provokateurin
Copy link
Member Author

To get updates automatically? Or what would be the reason?

@provokateurin
Copy link
Member Author

If we add them as dev dependencies they don't necessary follow the same constraints as in 3rdparty, so I would rather have the stubs where we know that they exactly match the currently used versions.

@provokateurin provokateurin merged commit 3abb9d3 into master Sep 16, 2024
48 checks passed
@provokateurin provokateurin deleted the fix/psalm/missing-stubs branch September 16, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Items that need to be reviewed bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants