forked from laminas/laminas-permissions-rbac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm-baseline.xml
64 lines (64 loc) · 1.93 KB
/
psalm-baseline.xml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.24.0@06dd975cb55d36af80f242561738f16c5f58264f">
<file src="src/Assertion/CallbackAssertion.php">
<MixedInferredReturnType occurrences="1">
<code>bool</code>
<code>bool</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="1">
<code>$callback($rbac, $role, $permission)</code>
</MixedReturnStatement>
</file>
<file src="src/Rbac.php">
<RedundantCondition occurrences="2">
<code>$result</code>
<code>$result</code>
</RedundantCondition>
</file>
<file src="src/Role.php">
<UndefinedInterfaceMethod occurrences="3">
<code>getPermissions</code>
<code>hasAncestor</code>
<code>hasDescendant</code>
</UndefinedInterfaceMethod>
</file>
<file src="test/Assertion/CallbackAssertionTest.php">
<InvalidArgument occurrences="1">
<code>$callable</code>
</InvalidArgument>
<MissingClosureParamType occurrences="4">
<code>$permission</code>
<code>$rbac</code>
<code>$rbac</code>
<code>$rbacArg</code>
<code>$role</code>
<code>$role</code>
</MissingClosureParamType>
<UnusedClosureParam occurrences="3">
<code>$permission</code>
<code>$rbac</code>
<code>$rbac</code>
<code>$role</code>
</UnusedClosureParam>
</file>
<file src="test/RbacTest.php">
<InvalidArgument occurrences="3">
<code>$foo</code>
<code>$role</code>
<code>$role</code>
<code>'parent'</code>
</InvalidArgument>
<TooManyArguments occurrences="2">
<code>new TestAsset\RoleMustMatchAssertion($bar)</code>
<code>new TestAsset\RoleMustMatchAssertion($foo)</code>
</TooManyArguments>
</file>
<file src="test/RoleTest.php">
<InvalidArgument occurrences="1">
<code>$perm</code>
</InvalidArgument>
<InvalidCast occurrences="1">
<code>$perm</code>
</InvalidCast>
</file>
</files>