The trait MartinGeorgiev\Doctrine\...TimezoneValidationTrait requires the property $value which is not provided by MartinGeorgiev\Doctrine\...AST\Functions\DateTrunc.
Loading history...
23
24
7
protected function getNodeMappingPattern(): array
25
{
26
7
return ['StringPrimary'];
27
}
28
29
7
protected function getFunctionName(): string
30
{
31
7
return 'date_trunc';
32
}
33
34
7
protected function getMinArgumentCount(): int
35
{
36
7
return 2;
37
}
38
39
7
protected function getMaxArgumentCount(): int
40
{
41
7
return 3;
42
}
43
44
6
protected function validateArguments(Node ...$arguments): void
45
{
46
6
parent::validateArguments(...$arguments);
47
48
// Validate that the third parameter is a valid timezone if provided