File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 133
133
use SlevomatCodingStandard \Sniffs \Commenting \RequireOneLinePropertyDocCommentSniff ;
134
134
use Symplify \EasyCodingStandard \Config \ECSConfig ;
135
135
136
+ // The definitions below fix issue with issue on annotations
137
+ // [ERROR] System error: "Undefined constant "T_TYPE_CLOSE_PARENTHESIS""Run ECS with "--debug" option and post the report
138
+ // here: https://github.com/symplify/symplify/issues/new in src/EventListener/AttachmentListener.php:527
139
+ // Reference to files:
140
+ // - vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Commenting/RequireOneLinePropertyDocCommentSniff.php:29
141
+ // - vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/TokenHelper.php:520
142
+ if (!defined ('T_TYPE_OPEN_PARENTHESIS ' )) {
143
+ define ('T_TYPE_OPEN_PARENTHESIS ' , 'PHPCS_T_TYPE_OPEN_PARENTHESIS ' );
144
+ }
145
+
146
+ if (!defined ('T_TYPE_CLOSE_PARENTHESIS ' )) {
147
+ define ('T_TYPE_CLOSE_PARENTHESIS ' , 'PHPCS_T_TYPE_CLOSE_PARENTHESIS ' );
148
+ }
149
+
136
150
return static function (ECSConfig $ ecsConfig ): void {
137
151
$ ecsConfig ->rules ([
138
152
BinaryOperatorSpacesFixer::class,
You can’t perform that action at this time.
0 commit comments