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

refactor: Change class strings to ::class constants #1562

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

ChristophWurst
Copy link
Contributor

This is a scripted refactoring to replace class strings with ::class constant references.

I chose not to import the classes to keep the diff clean.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.24%. Comparing base (a9d0a90) to head (e7aec4d).
Report is 11 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1562   +/-   ##
=========================================
  Coverage     97.24%   97.24%           
- Complexity     2834     2836    +2     
=========================================
  Files           175      175           
  Lines          8843     8852    +9     
=========================================
+ Hits           8599     8608    +9     
  Misses          244      244           

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

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -12,7 +12,7 @@ class ACLTest extends \PHPUnit\Framework\TestCase
public function testConstruct()
{
$acl = new Acl([]);
self::assertInstanceOf('Sabre\DAVACL\Xml\Property\ACL', $acl);
self::assertInstanceOf(\Sabre\DAVACL\Xml\Property\Acl::class, $acl);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

^ small casing issue revealed by the refactoring :)

@phil-davis phil-davis merged commit 396f8e8 into sabre-io:master Nov 5, 2024
10 checks passed
@ChristophWurst ChristophWurst deleted the refactor/class-constant branch November 5, 2024 06:48
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