Skip to content

[WIP] Bump phan 0.12.10=>1.1.8#33904

Closed
phil-davis wants to merge 1 commit intomasterfrom
bump-phan-20181216
Closed

[WIP] Bump phan 0.12.10=>1.1.8#33904
phil-davis wants to merge 1 commit intomasterfrom
bump-phan-20181216

Conversation

@phil-davis
Copy link
Contributor

Description

TBD

Related Issue

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • Backport (if applicable set "backport-request" label and remove when the backport was done)

@phil-davis
Copy link
Contributor Author

phil-davis commented Dec 16, 2018

https://drone.owncloud.com/owncloud/core/13616/96

apps/dav/lib/CalDAV/Calendar.php:63 PhanUndeclaredMethod Call to undeclared method \Sabre\CalDAV\Backend\BackendInterface::updateShares
apps/dav/lib/CalDAV/Calendar.php:81 PhanUndeclaredMethod Call to undeclared method \Sabre\CalDAV\Backend\BackendInterface::getShares
apps/dav/lib/CalDAV/Calendar.php:142 PhanUndeclaredMethod Call to undeclared method \Sabre\CalDAV\Backend\BackendInterface::applyShareAcl
apps/dav/lib/CalDAV/Calendar.php:169 PhanUndeclaredMethod Call to undeclared method \Sabre\CalDAV\Backend\BackendInterface::updateShares
apps/dav/lib/CalDAV/Calendar.php:256 PhanUndeclaredMethod Call to undeclared method \Sabre\CalDAV\Backend\BackendInterface::setPublishStatus
apps/dav/lib/CalDAV/Calendar.php:265 PhanUndeclaredMethod Call to undeclared method \Sabre\CalDAV\Backend\BackendInterface::getPublishStatus
apps/dav/lib/CalDAV/CalendarHome.php:65 PhanUndeclaredMethod Call to undeclared method \Sabre\CalDAV\Backend\BackendInterface::getSubscriptionsForUser
apps/dav/lib/CalDAV/CalendarHome.php:96 PhanUndeclaredMethod Call to undeclared method \Sabre\CalDAV\Backend\BackendInterface::getSubscriptionsForUser
apps/dav/lib/CalDAV/Publishing/PublishPlugin.php:184 PhanUndeclaredMethod Call to undeclared method \Sabre\DAV\ServerPlugin::checkPrivileges
...

There are lots of PhanUndeclaredMethod reported by the new version.

For example, the first reported problem looks like a valid problem report:
apps/dav/lib/CalDAV/Calendar.php:63

	public function updateShares(array $add, array $remove) {
		/** @var CalDavBackend $calDavBackend */
		$calDavBackend = $this->caldavBackend;
		$calDavBackend->updateShares($this, $add, $remove);
	}

Actually the caldavBackend var seems to be declared in sabre/dav/lib/CalDAV/Calendar.php and is a Sabre/CalDAV/Backend\BackendInterface and that interface does not have an updateShares method. The updateShares method is an "extra" in apps/dav/lib/DAV/Sharing/IShareable.php and indeed has an implementation in apps/dav/lib/CalDAV/CalDavBackend.php

Anyway, what to do about all these PhanUndeclaredMethod reports?

@DeepDiver1975 @patrickjahns

Note: I don't think there is any hurry for this. I tries bumping the phan version just because I noticed it was quite old.

@patrickjahns patrickjahns self-requested a review December 16, 2018 21:54
Copy link
Contributor

@patrickjahns patrickjahns left a comment

Choose a reason for hiding this comment

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

Please switch to using composer-bin instead of phar for core to align with the other repositories

@phil-davis
Copy link
Contributor Author

Yes, this is just a demonstration anyway of what "new" code issues are reported. So "somebody" has to look into those, or sort out why we would skip stuff, in order to do this version bump anyway.
Moving to composer-bin can be done separately, with only whatever version bump can work without inducing new reports.

@phil-davis
Copy link
Contributor Author

Waiting for someone to review #33908 and get it merged. Then we can look at what to do next with phan version.

@phil-davis
Copy link
Contributor Author

Out of date. See #34023 for next phan bump

@phil-davis phil-davis closed this Feb 15, 2019
@phil-davis phil-davis deleted the bump-phan-20181216 branch February 15, 2019 15:47
@lock lock bot locked as resolved and limited conversation to collaborators Feb 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants