Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 原生枚举深度支持 #646

Merged
merged 8 commits into from
Nov 14, 2023
Merged

PHP 原生枚举深度支持 #646

merged 8 commits into from
Nov 14, 2023

Conversation

Yurunsoft
Copy link
Member

  • beans 配置注入支持枚举
  • InEnum 验证器支持原生枚举

@Yurunsoft Yurunsoft added enhancement New feature or request 3.0 Plan version 3.0 2.1 labels Nov 14, 2023
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (62c9d6f) 65.59% compared to head (629cd1d) 66.32%.

Files Patch % Lines
src/Bean/BeanFactory.php 61.53% 5 Missing ⚠️
src/Bean/BeanProxy.php 95.55% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.1     #646      +/-   ##
============================================
+ Coverage     65.59%   66.32%   +0.72%     
- Complexity    11260    11284      +24     
============================================
  Files           896      897       +1     
  Lines         30676    30722      +46     
============================================
+ Hits          20123    20376     +253     
+ Misses        10553    10346     -207     

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

@Yurunsoft Yurunsoft merged commit ba917f2 into 2.1 Nov 14, 2023
52 of 54 checks passed
@Yurunsoft Yurunsoft deleted the inject-enum branch November 14, 2023 07:49
Yurunsoft added a commit that referenced this pull request Nov 14, 2023
* beans 配置注入支持枚举

* InEnum 验证器支持原生枚举

* 修复

* 修复

* 修复一个类有多个Bean名称时,beans 注入的属性值不正确

* 完善测试

* 修复

* 修复
# Conflicts:
#	phpstan.neon
#	src/Bean/BeanProxy.php
#	src/Validate/ValidatorHelper.php
Yurunsoft added a commit that referenced this pull request Nov 14, 2023
* 重构 AMQP 枚举

* 重构 pgsql 枚举

* 重构 CronTaskType

* 重构 Imi\Cron\Consts\UniqueLevel 枚举

* 重构 Imi\Db\Mysql\Consts\LogicalOperator

* 重构 Imi\Db\Mysql\Query\FullText\SearchModifier

* 修复

* 重构 Imi\Model\IdGenerator\UUIDGeneratorType

* 更新文档

* 修复

* 重构 Imi\Server\WebSocket\Enum::NonControlFrameType 枚举

* PHP 原生枚举深度支持 (#646)

* beans 配置注入支持枚举

* InEnum 验证器支持原生枚举

* 修复

* 修复

* 修复一个类有多个Bean名称时,beans 注入的属性值不正确

* 完善测试

* 修复

* 修复
# Conflicts:
#	phpstan.neon
#	src/Bean/BeanProxy.php
#	src/Validate/ValidatorHelper.php

* 修复

* 修复

* 调整命名
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.1 3.0 Plan version 3.0 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant