Closed phil-davis closed 1 year ago
Merging #49 (b2ad303) into master (485646d) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #49 +/- ##
=========================================
Coverage 98.72% 98.72%
Complexity 85 85
=========================================
Files 4 4
Lines 157 157
=========================================
Hits 155 155
Misses 2 2
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
It seems that some IDEs these days are warning about $this->assertSomething()
calls that are actually calling a static function. So maybe that is a reason to change the code?
(it is a very easy global search-replace to make this change)
I think the reason we did not catch it earlier is, that we don't have phpstan/phpunit installed and therefore phpstan didn't report it :)
Lots of other projects use $this->assertSomething
@DeepDiver1975 mentioned it in https://github.com/owncloud/core/pull/40600#discussion_r1099882923 just today. But we have been doing it the $this->
way for many years.
My IDE (phpstorm) is crying if we use $this->assert*
:rofl:
Why have we been writing
$this->
rather thanself::
when calling the static functions in the Assert library?