Skip to content

fix: 允许通过实体模型调用对应模型的所有公共静态方法#818

Open
gitlilimin wants to merge 1 commit into
top-think:4.0from
gitlilimin:feat-entity-static-method
Open

fix: 允许通过实体模型调用对应模型的所有公共静态方法#818
gitlilimin wants to merge 1 commit into
top-think:4.0from
gitlilimin:feat-entity-static-method

fix: 仅允许通过 Entity::__callStatic 调用对应模型的 public static 方法,包括自定义的静态方法,而…

2e76ce3
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jul 4, 2026 in 0s

52.08% (+0.01%) compared to 006ad4b

View this Pull Request on Codecov

52.08% (+0.01%) compared to 006ad4b

Details

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 52.08%. Comparing base (006ad4b) to head (2e76ce3).
⚠️ Report is 23 commits behind head on 4.0.

Files with missing lines Patch % Lines
src/Entity.php 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                4.0     #818      +/-   ##
============================================
+ Coverage     52.06%   52.08%   +0.01%     
  Complexity     3507     3507              
============================================
  Files            74       74              
  Lines          8313     8316       +3     
============================================
+ Hits           4328     4331       +3     
  Misses         3985     3985              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.