Skip to content

Commit 93147e5

Browse files
committed
Revert "Ignore phpstan lint"
This reverts commit 15ea96b.
1 parent 15ea96b commit 93147e5

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/tedo0627/redstonecircuit/RedstoneCircuit.php

-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ public function onLoad(): void {
185185

186186
self::registerMappings();
187187
$this->getServer()->getAsyncPool()->addWorkerStartHook(function (int $worker): void {
188-
/** @phpstan-ignore-next-line */
189188
$this->getServer()->getAsyncPool()->submitTaskToWorker(new class extends AsyncTask {
190189
public function onRun(): void {
191190
RedstoneCircuit::registerMappings();

src/tedo0627/redstonecircuit/block/mechanism/BlockDispenser.php

-5
Original file line numberDiff line numberDiff line change
@@ -182,31 +182,26 @@ private static function registerBehavior() {
182182
self::$init = true;
183183
self::$default = new DefaultItemDispenseBehavior();
184184

185-
/** @phpstan-ignore-next-line */
186185
self::$behaviors[ItemIds::ARROW] = new class extends ProjectileDispenseBehavior {
187186
public function getEntity(Location $location, Item $item): Entity {
188187
return new Arrow($location, null, false);
189188
}
190189
};
191-
/** @phpstan-ignore-next-line */
192190
self::$behaviors[ItemIds::EGG] = new class extends ProjectileDispenseBehavior {
193191
public function getEntity(Location $location, Item $item): Entity {
194192
return new Egg($location, null);
195193
}
196194
};
197-
/** @phpstan-ignore-next-line */
198195
self::$behaviors[ItemIds::SNOWBALL] = new class extends ProjectileDispenseBehavior {
199196
public function getEntity(Location $location, Item $item): Entity {
200197
return new Snowball($location, null);
201198
}
202199
};
203-
/** @phpstan-ignore-next-line */
204200
self::$behaviors[ItemIds::EXPERIENCE_BOTTLE] = new class extends ProjectileDispenseBehavior {
205201
public function getEntity(Location $location, Item $item): Entity {
206202
return new ExperienceBottle($location, null);
207203
}
208204
};
209-
/** @phpstan-ignore-next-line */
210205
self::$behaviors[ItemIds::SPLASH_POTION] = new class extends ProjectileDispenseBehavior {
211206
public function getEntity(Location $location, Item $item): Entity {
212207
if (!$item instanceof \pocketmine\item\SplashPotion) throw new InvalidArgumentException("item was not SplashPotion");

0 commit comments

Comments
 (0)