Change static to self in properties factory (scrutinizer-ci issue)

This commit is contained in:
ErickSkrauch 2019-04-07 01:36:44 +02:00
parent 069d7763e0
commit 6cb975d2d3
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E
2 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- The constructor no longer has arguments.
### Fixed
- Change `static` to `self` in `\Ely\Mojang\Response\Properties\Factory` to allow its extending.
### Removed
- `\Ely\Mojang\Api::create()` static method. Use constructor instead.

View File

@ -11,7 +11,7 @@ class Factory {
public static function createFromProp(array $prop): Property {
$name = $prop['name'];
if (isset(static::$MAP[$name])) {
if (isset(self::$MAP[$name])) {
$className = static::$MAP[$name];
return new $className($prop);
}