mirror of
https://github.com/werkraum-media/thuecat.git
synced 2024-12-05 03:26:13 +01:00
Ease entity registration
Remove phpstan errors and ease code. Directly call the static methods instead of wrapping the call with call_user_func() for no reason.
This commit is contained in:
parent
734d94f9da
commit
8499284d5f
2 changed files with 2 additions and 12 deletions
|
@ -47,8 +47,8 @@ class EntityPass implements CompilerPassInterface
|
|||
'registerEntityClass',
|
||||
[
|
||||
$definition->getClass(),
|
||||
call_user_func([$definition->getClass(), 'getPriority']),
|
||||
call_user_func([$definition->getClass(), 'getSupportedTypes']),
|
||||
$definition->getClass()::getPriority(),
|
||||
$definition->getClass()::getSupportedTypes(),
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,15 +1,5 @@
|
|||
parameters:
|
||||
ignoreErrors:
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{class\\-string, 'getPriority'\\} given\\.$#"
|
||||
count: 1
|
||||
path: Classes/DependencyInjection/EntityPass.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{class\\-string, 'getSupportedTypes'\\} given\\.$#"
|
||||
count: 1
|
||||
path: Classes/DependencyInjection/EntityPass.php
|
||||
|
||||
-
|
||||
message: "#^Method WerkraumMedia\\\\ThueCat\\\\Domain\\\\Import\\\\EntityMapper\\:\\:mapDataToEntity\\(\\) should return object but returns mixed\\.$#"
|
||||
count: 1
|
||||
|
|
Loading…
Reference in a new issue