Skip to content

[pull] master from php-casbin:master#49

Merged
pull[bot] merged 7 commits intoMu-L:masterfrom
php-casbin:master
Oct 22, 2024
Merged

[pull] master from php-casbin:master#49
pull[bot] merged 7 commits intoMu-L:masterfrom
php-casbin:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Oct 22, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

Dobmod and others added 7 commits September 11, 2024 00:19
- Updated README and README_CN
  - Fixed broken links
  - Synced latest content
- Updated composer.json
  - Required PHP 8
  - Synced and upgraded dependencies to the latest versions
  - Removed dependency on `s1lentium/iptools`
- Updated CI configuration
  - Removed tests for PHP 7.x
- Utilized PHP 8 syntax features
  - Nullsafe operator
  - Match expression
  - Replaced functions with `str_contains` and `str_starts_with`
  - Used union types for better type handling
- Added CachedEnforcer to integrate Symfony's Cache component for caching functionality.
- Enabled support for multiple cache adapters, allowing flexible switching based on configuration.
- Added methods to control cache usage, improving flexibility and performance in caching decisions.
- Maintain consistency with core library
- Add `GetDomainsForUser` API
- Prepare for RBAC with Conditions
- Simplify the 'replaceEvalWithMap' function
- Standardize styles (e.g., Closure, count)
- Improve unit tests
BREAKING CHANGE: Upgrade the minimum PHP version to 8.0.
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 11458656409

Details

  • 716 of 758 (94.46%) changed or added relevant lines in 23 files are covered.
  • 10 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.2%) to 94.006%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/CachedEnforcer.php 44 45 97.78%
src/InternalEnforcer.php 3 4 75.0%
src/Log/Logger/DefaultLogger.php 47 48 97.92%
src/Model/Policy.php 27 29 93.1%
src/Rbac/DefaultRoleManager/Traits/RoleManager.php 94 96 97.92%
src/Util/Util.php 29 31 93.55%
src/Rbac/DefaultRoleManager/Traits/DomainManager.php 77 80 96.25%
src/Rbac/DefaultRoleManager/Role.php 54 58 93.1%
src/Rbac/DefaultRoleManager/ConditionalDomainManager.php 29 34 85.29%
src/Util/BuiltinOperations.php 26 32 81.25%
Files with Coverage Reduction New Missed Lines %
src/Model/Policy.php 1 95.65%
src/InternalEnforcer.php 1 82.07%
src/Util/BuiltinOperations.php 1 95.54%
src/CoreEnforcer.php 7 86.45%
Totals Coverage Status
Change from base Build 10783446217: 0.2%
Covered Lines: 1976
Relevant Lines: 2102

💛 - Coveralls

@pull pull bot added the ⤵️ pull label Oct 22, 2024
@pull pull bot merged commit 89c9f1d into Mu-L:master Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants