diff --git a/src/flextype/core/Entries/Directives/CalcDirective.php b/src/flextype/core/Entries/Directives/CalcDirective.php index cc4f67cc..9b01494c 100644 --- a/src/flextype/core/Entries/Directives/CalcDirective.php +++ b/src/flextype/core/Entries/Directives/CalcDirective.php @@ -17,7 +17,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; use ChrisKonnertz\StringCalc\StringCalc; -// Directive: @calc() +// Directive: @calc[] emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.calc.enabled')) { diff --git a/src/flextype/core/Entries/Directives/ConstantsDirective.php b/src/flextype/core/Entries/Directives/ConstantsDirective.php index e7da0176..2374fd48 100644 --- a/src/flextype/core/Entries/Directives/ConstantsDirective.php +++ b/src/flextype/core/Entries/Directives/ConstantsDirective.php @@ -16,7 +16,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; -// Directive: @const() +// Directive: @const[] emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.constants.enabled')) { diff --git a/src/flextype/core/Entries/Directives/FieldsDirective.php b/src/flextype/core/Entries/Directives/FieldsDirective.php index 4f5bb69d..14583db6 100644 --- a/src/flextype/core/Entries/Directives/FieldsDirective.php +++ b/src/flextype/core/Entries/Directives/FieldsDirective.php @@ -16,7 +16,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; -// Directive: @field() +// Directive: @field[] emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.fields.enabled')) { diff --git a/src/flextype/core/Entries/Directives/VarsDirective.php b/src/flextype/core/Entries/Directives/VarsDirective.php index d857d237..b61e6bf9 100644 --- a/src/flextype/core/Entries/Directives/VarsDirective.php +++ b/src/flextype/core/Entries/Directives/VarsDirective.php @@ -16,7 +16,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; -// Directive: @var() +// Directive: @var[] emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.vars.enabled')) {