mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
First look at making entity creation closure-driven
this allows doing stuff like injecting plugin references to entity constructors for now. I want to make this more flexible still, but I've done about as much as I feel like doing today and don't want this disappearing into a stash to never be seen again.
This commit is contained in:
@ -20,6 +20,16 @@ parameters:
|
||||
count: 3
|
||||
path: ../../../src/command/CommandReader.php
|
||||
|
||||
-
|
||||
message: "#^Closure invoked with 2 parameters, at least 3 required\\.$#"
|
||||
count: 1
|
||||
path: ../../../src/entity/EntityFactory.php
|
||||
|
||||
-
|
||||
message: "#^Only iterables can be unpacked, mixed given in argument \\#3\\.$#"
|
||||
count: 6
|
||||
path: ../../../src/entity/EntityFactory.php
|
||||
|
||||
-
|
||||
message: "#^Call to function assert\\(\\) with false and 'unknown hit type' will always evaluate to false\\.$#"
|
||||
count: 1
|
||||
|
Reference in New Issue
Block a user