getPermissionErrors() uses a weird format for its return value that is slightly different from the usual "legacy error array", and legacy errors arrays are already icky. Deprecate it without changing this format, and introduce getPermissionStatus() to replace it. Document the return format more precisely. Refactor PermissionManager to use PermissionStatus objects internally, and only convert to the weird format in the deprecated method. However, fix a scenario where the error array could directly contain MessageSpecifier objects or strings instead of nested arrays, as the documentation said that was not possible. Fix a test case demonstrating this incorrect behavior. Change-Id: I6670a58fe1fcb4e1ae87351277e5ddf29c548183 |
||
|---|---|---|
| .. | ||
| GrantsInfoTest.php | ||
| GroupPermissionsLookupTest.php | ||
| PermissionManagerTest.php | ||
| PermissionStatusTest.php | ||
| RateLimitSubjectTest.php | ||
| RestrictionStoreTest.php | ||
| SimpleAuthorityTest.php | ||
| UltimateAuthorityTest.php | ||
| UserAuthorityTest.php | ||