feat: implement data permission rules and context management with cac… #1624
Annotations
10 errors
build Code coverage report (ubuntu-latest, 8.1, v5.1.3):
app/Library/DataPermission/Rule/Executable/DeptExecute.php#L51
Variable $departmentList might not be defined.
|
build Code coverage report (ubuntu-latest, 8.1, v5.1.3):
app/Library/DataPermission/Rule/Executable/CreatedByIdsExecute.php#L115
Parameter #1 $callback of method Hyperf\Collection\Collection<(int|string),Hyperf\Database\Model\Model>::each() expects callable(Hyperf\Database\Model\Model, int|string): mixed, Closure(App\Model\Permission\User): void given.
|
build Code coverage report (ubuntu-latest, 8.1, v5.1.3):
app/Library/DataPermission/Rule/Executable/CreatedByIdsExecute.php#L110
Parameter #1 $callback of method Hyperf\Collection\Collection<(int|string),Hyperf\Database\Model\Model>::each() expects callable(Hyperf\Database\Model\Model, int|string): mixed, Closure(App\Model\Permission\Department): void given.
|
build Code coverage report (ubuntu-latest, 8.1, v5.1.3):
app/Library/DataPermission/Rule/Executable/CreatedByIdsExecute.php#L104
Parameter #1 $callback of method Hyperf\Collection\Collection<(int|string),Hyperf\Database\Model\Model>::each() expects callable(Hyperf\Database\Model\Model, int|string): mixed, Closure(App\Model\Permission\User): void given.
|
build Code coverage report (ubuntu-latest, 8.1, v5.1.3):
app/Library/DataPermission/Rule/Executable/CreatedByIdsExecute.php#L100
Parameter #1 $callback of method Hyperf\Collection\Collection<(int|string),Hyperf\Database\Model\Model>::each() expects callable(Hyperf\Database\Model\Model, int|string): mixed, Closure(App\Model\Permission\Department): void given.
|
build Code coverage report (ubuntu-latest, 8.1, v5.1.3):
app/Library/DataPermission/Rule/Executable/CreatedByIdsExecute.php#L85
Parameter #1 $callback of method Hyperf\Collection\Collection<(int|string),Hyperf\Database\Model\Model>::each() expects callable(Hyperf\Database\Model\Model, int|string): mixed, Closure(App\Model\Permission\User): void given.
|
build Code coverage report (ubuntu-latest, 8.1, v5.1.3):
app/Library/DataPermission/Rule/Executable/CreatedByIdsExecute.php#L76
Parameter #1 $callback of method Hyperf\Collection\Collection<(int|string),Hyperf\Database\Model\Model>::each() expects callable(Hyperf\Database\Model\Model, int|string): mixed, Closure(App\Model\Permission\User): void given.
|
build Code coverage report (ubuntu-latest, 8.1, v5.1.3):
app/Library/DataPermission/Rule/Executable/CreatedByIdsExecute.php#L62
Parameter #1 $callback of method Hyperf\Collection\Collection<(int|string),Hyperf\Database\Model\Model>::each() expects callable(Hyperf\Database\Model\Model, int|string): mixed, Closure(App\Model\Permission\User): void given.
|
build Code coverage report (ubuntu-latest, 8.1, v5.1.3):
app/Library/DataPermission/Rule/Executable/CreatedByIdsExecute.php#L55
Variable $departmentList might not be defined.
|
build Code coverage report (ubuntu-latest, 8.1, v5.1.3):
app/Library/DataPermission/Aspects/DataScopeAspect.php#L90
Strict comparison using === between App\Library\DataPermission\Attribute\DataScope and null will always evaluate to false.
|