-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix non-abstract class contains abstract method with more than one-le…
…vel parent class away
- Loading branch information
1 parent
375f411
commit d8a0735
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Bug3469; | ||
|
||
abstract class Tile{ | ||
abstract protected function readSaveData() : void; | ||
|
||
abstract protected function writeSaveData() : void; | ||
} | ||
|
||
|
||
abstract class Spawnable extends Tile{ | ||
} | ||
|
||
trait NameableTrait{ | ||
|
||
protected function loadName() : void{ | ||
} | ||
|
||
protected function saveName() : void{ | ||
} | ||
} | ||
|
||
class EnchantTable extends Spawnable{ | ||
use NameableTrait { | ||
loadName as readSaveData; | ||
saveName as writeSaveData; | ||
} | ||
} |