entrust
entrust copied to clipboard
Update EntrustPermission.php
Summary of Improvements
- Added property and method type hints for better safety
- Switched to
Illuminate\Http\Requestinstead of plain$request - Extracted
normalizePermissions()to improve method clarity - Used
(string)casting and null coalescing to simplify checks - Added PHPDoc blocks and exception annotations
- No changes in behavior — fully backward-compatible