We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
auditor
ErrorException
Warning: Object of class App\Enum\ProductType could not be converted to int
vendor\damienharper\auditor\src\Provider\Doctrine\Auditing\Transaction\AuditTrait.php&line=89#line89)(line 89)
https://github.com/DamienHarper/auditor/blob/master/src/Provider/Doctrine/Auditing/Transaction/AuditTrait.php#L88
case DoctrineHelper::getDoctrineType('INTEGER'): case DoctrineHelper::getDoctrineType('SMALLINT'): $convertedValue = (int) $value; // @phpstan-ignore-line break;
Bug fixed
case DoctrineHelper::getDoctrineType('INTEGER'): case DoctrineHelper::getDoctrineType('SMALLINT'): $convertedValue = (int) ($value instanceof \BackedEnum ? $value->value : $value) ; // @phpstan-ignore-line break;
The text was updated successfully, but these errors were encountered:
@test789t Thanks for the report. I'll have a look at it asap.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
auditor
versionSummary
ErrorException
Warning: Object of class App\Enum\ProductType could not be converted to int
Current behavior
vendor\damienharper\auditor\src\Provider\Doctrine\Auditing\Transaction\AuditTrait.php&line=89#line89)(line 89)
https://github.com/DamienHarper/auditor/blob/master/src/Provider/Doctrine/Auditing/Transaction/AuditTrait.php#L88
Current code
Bug fixed
The text was updated successfully, but these errors were encountered: