Skip to content

Add some type annotations#1661

Merged
phil-davis merged 3 commits into
sabre-io:masterfrom
CarlSchwan:carl/add-type-annotations
Jul 11, 2026
Merged

Add some type annotations#1661
phil-davis merged 3 commits into
sabre-io:masterfrom
CarlSchwan:carl/add-type-annotations

Conversation

@CarlSchwan

@CarlSchwan CarlSchwan commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

This has been sitting in a local stash for a while

@CarlSchwan CarlSchwan requested a review from kesselb July 9, 2026 10:16
@CarlSchwan CarlSchwan self-assigned this Jul 9, 2026
@CarlSchwan CarlSchwan force-pushed the carl/add-type-annotations branch 2 times, most recently from ad15c75 to a251a76 Compare July 9, 2026 10:18
@CarlSchwan CarlSchwan force-pushed the carl/add-type-annotations branch 2 times, most recently from 3f619a9 to d501a0e Compare July 9, 2026 11:09
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.87629% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.22%. Comparing base (8e75b59) to head (acb56a5).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
lib/DAV/PropFind.php 71.42% 2 Missing ⚠️
lib/DAVACL/PrincipalBackend/PDO.php 87.50% 1 Missing ⚠️
lib/DAVACL/PrincipalCollection.php 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1661   +/-   ##
=========================================
  Coverage     97.21%   97.22%           
  Complexity     2845     2845           
=========================================
  Files           175      175           
  Lines          8884     8885    +1     
=========================================
+ Hits           8637     8638    +1     
  Misses          247      247           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ChristophWurst ChristophWurst left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good

Reference args formatting could be split into a separate CS clean-up IMO

Comment thread lib/CalDAV/Schedule/Plugin.php Outdated
For now, these are 'safe' type hints. So more precise doc comments,
returns type in class which are not supposed to be extended and
parameters types in interfaces.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
This is backward compatible for all the classes that are supposed to be
extended.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@phil-davis phil-davis force-pushed the carl/add-type-annotations branch from d501a0e to 961c253 Compare July 11, 2026 12:39
Mostly it has removed the space between the ampersand and the
parameter name in pass-by-reference parameters.
@phil-davis phil-davis merged commit bb427f2 into sabre-io:master Jul 11, 2026
10 of 11 checks passed
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.

3 participants