Skip to content

Commit cc792c2

Browse files
authored
Merge pull request #85 from php-http/scrutinizer-fix
Using 'self' instead of 'static'
2 parents 5a236c5 + db09f90 commit cc792c2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
## Unreleased
55

6+
### Changed
7+
8+
- `CommonClassesStrategy` is using `self` instead of `static`. Using `static` makes no sense when `CommonClassesStrategy` is final.
9+
610
## 1.1.0 - 2016-10-20
711

812
### Added

src/Strategy/CommonClassesStrategy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ final class CommonClassesStrategy implements DiscoveryStrategy
6767
*/
6868
public static function getCandidates($type)
6969
{
70-
if (isset(static::$classes[$type])) {
71-
return static::$classes[$type];
70+
if (isset(self::$classes[$type])) {
71+
return self::$classes[$type];
7272
}
7373

7474
return [];

0 commit comments

Comments
 (0)