Bite the bullet and enable strict types on everything

This commit is contained in:
Dylan K. Taylor 2017-06-03 21:32:29 +01:00
parent 606b9b687d
commit 51b0673b4b
846 changed files with 1691 additions and 1 deletions

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine; namespace pocketmine;
use pocketmine\event\TranslationContainer; use pocketmine\event\TranslationContainer;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine; namespace pocketmine;
abstract class Collectable extends \Threaded implements \Collectable{ abstract class Collectable extends \Threaded implements \Collectable{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine; namespace pocketmine;
use pocketmine\network\mcpe\protocol\ProtocolInfo; use pocketmine\network\mcpe\protocol\ProtocolInfo;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine; namespace pocketmine;
use pocketmine\permission\ServerOperator; use pocketmine\permission\ServerOperator;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine; namespace pocketmine;
use pocketmine\event\server\LowMemoryEvent; use pocketmine\event\server\LowMemoryEvent;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine; namespace pocketmine;
use pocketmine\metadata\Metadatable; use pocketmine\metadata\Metadatable;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine; namespace pocketmine;
use pocketmine\block\Air; use pocketmine\block\Air;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace { namespace {
function safe_var_dump(){ function safe_var_dump(){
static $cnt = 0; static $cnt = 0;

View File

@ -19,7 +19,7 @@
* *
*/ */
declare(strict_types = 1); declare(strict_types=1);
/** /**
* PocketMine-MP is the Minecraft: PE multiplayer server software * PocketMine-MP is the Minecraft: PE multiplayer server software

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine; namespace pocketmine;
/** /**

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine; namespace pocketmine;
class ThreadManager extends \Volatile{ class ThreadManager extends \Volatile{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine; namespace pocketmine;
/** /**

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
class AcaciaWoodStairs extends WoodStairs{ class AcaciaWoodStairs extends WoodStairs{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
class ActivatorRail extends Rail{ class ActivatorRail extends Rail{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\inventory\AnvilInventory; use pocketmine\inventory\AnvilInventory;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\event\TranslationContainer; use pocketmine\event\TranslationContainer;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
class BirchWoodStairs extends WoodStairs{ class BirchWoodStairs extends WoodStairs{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
/** /**
* All Block classes are in here * All Block classes are in here
*/ */

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
interface BlockIds{ interface BlockIds{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Tool; use pocketmine\item\Tool;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Tool; use pocketmine\item\Tool;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Tool; use pocketmine\item\Tool;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Effect; use pocketmine\entity\Effect;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Tool; use pocketmine\item\Tool;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
class CocoaBlock extends Solid{ class CocoaBlock extends Solid{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\event\block\BlockGrowEvent; use pocketmine\event\block\BlockGrowEvent;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
class DarkOakWoodStairs extends WoodStairs{ class DarkOakWoodStairs extends WoodStairs{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
class DaylightSensor extends Transparent{ class DaylightSensor extends Transparent{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\level\Level; use pocketmine\level\Level;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
class DetectorRail extends Rail{ class DetectorRail extends Rail{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\inventory\EnchantInventory; use pocketmine\inventory\EnchantInventory;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Tool; use pocketmine\item\Tool;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Tool; use pocketmine\item\Tool;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Arrow; use pocketmine\entity\Arrow;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
abstract class Flowable extends Transparent{ abstract class Flowable extends Transparent{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\event\block\BlockSpreadEvent; use pocketmine\event\block\BlockSpreadEvent;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Tool; use pocketmine\item\Tool;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Tool; use pocketmine\item\Tool;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
class JungleWoodStairs extends WoodStairs{ class JungleWoodStairs extends WoodStairs{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Effect; use pocketmine\entity\Effect;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\event\block\LeavesDecayEvent; use pocketmine\event\block\LeavesDecayEvent;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\event\block\LeavesDecayEvent; use pocketmine\event\block\LeavesDecayEvent;

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
class Lever extends Flowable{ class Lever extends Flowable{

View File

@ -19,6 +19,8 @@
* *
*/ */
declare(strict_types=1);
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;

Some files were not shown because too many files have changed in this diff Show More