mirror of
https://github.com/elyby/mojang-api.git
synced 2024-12-23 08:39:54 +05:30
Change static to self in properties factory (scrutinizer-ci issue)
This commit is contained in:
parent
069d7763e0
commit
6cb975d2d3
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user