diff --git a/src/flextype/core/Entries/Directives/PhpDirective.php b/src/flextype/core/Entries/Directives/PhpDirective.php index 35f3f8c1..09e54ad0 100644 --- a/src/flextype/core/Entries/Directives/PhpDirective.php +++ b/src/flextype/core/Entries/Directives/PhpDirective.php @@ -29,6 +29,10 @@ emitter()->addListener('onEntriesFetchSingleField', static function (): void { $field = entries()->registry()->get('methods.fetch.field'); + if (is_string($field['value']) && strings($field['value'])->contains('!php')) { + return; + } + if (is_string($field['value'])) { if (strings($field['value'])->contains('@php')) { ob_start();