forked from jasonw4331/SimpleReplies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan-baseline.php
35 lines (33 loc) · 1.44 KB
/
phpstan-baseline.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^Method jasonw4331\\\\SimpleReplies\\\\Main\\:\\:getConsoleCommandSender\\(\\) should return pocketmine\\\\console\\\\ConsoleCommandSender but returns mixed\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Main.php',
];
$ignoreErrors[] = [
'message' => '#^Static property jasonw4331\\\\SimpleReplies\\\\Main\\:\\:\\$consoleCommandSender \\(pocketmine\\\\console\\\\ConsoleCommandSender\\) does not accept mixed\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Main.php',
];
$ignoreErrors[] = [
'message' => '#^Call to an undefined method pocketmine\\\\plugin\\\\Plugin\\:\\:getWhoLastSent\\(\\)\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/commands/ReplyCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Call to an undefined method pocketmine\\\\plugin\\\\Plugin\\:\\:onMessage\\(\\)\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/commands/ReplyCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Call to an undefined method pocketmine\\\\console\\\\ConsoleCommandSender\\|pocketmine\\\\player\\\\Player\\:\\:getDisplayName\\(\\)\\.$#',
'count' => 2,
'path' => __DIR__ . '/src/commands/TellCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Call to an undefined method pocketmine\\\\plugin\\\\Plugin\\:\\:onMessage\\(\\)\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/commands/TellCommand.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];