Skip to content

Commit d2a19fd

Browse files
committed
Fixed Deptrac issues
1 parent 9a3b4e0 commit d2a19fd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

code_samples/cdp/date_of_birth_export/src/Export/User/DateOfBirthUserItemProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
use Ibexa\Contracts\Cdp\Export\User\AbstractUserItemProcessor;
1212
use Ibexa\Contracts\Core\Repository\Values\Content\Content;
13-
use Ibexa\Core\Base\Exceptions\InvalidArgumentException;
1413
use Ibexa\Core\FieldType\Date\Value as DateValue;
14+
use InvalidArgumentException;
1515

1616
final class DateOfBirthUserItemProcessor extends AbstractUserItemProcessor
1717
{
@@ -27,7 +27,7 @@ protected function doProcess(array $processedItemData, Content $userContent): ar
2727
$userField = $this->getUserField($userContent);
2828

2929
if (null === $userField) {
30-
throw new InvalidArgumentException('$userContent', 'User content does not contain user field');
30+
throw new InvalidArgumentException('Content does not contain user field');
3131
}
3232

3333
$dateOfBirth = '';

deptrac.baseline.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ deptrac:
115115
- Ibexa\FieldTypePage\FieldType\Page\Block\Renderer\Event\PreRenderEvent
116116
- Ibexa\FieldTypePage\FieldType\Page\Block\Renderer\Twig\TwigRenderRequest
117117
- Ibexa\FieldTypeRichText\RichText\DOMDocumentFactory
118+
App\Export\User\DateOfBirthUserItemProcessor:
119+
- Ibexa\Core\FieldType\Date\Value
118120
App\FieldType\HelloWorld\Comparison\Comparable:
119121
- Ibexa\VersionComparison\ComparisonValue\StringComparisonValue
120122
App\FieldType\HelloWorld\Comparison\HelloWorldComparisonEngine:

0 commit comments

Comments
 (0)