File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 133133use SlevomatCodingStandard \Sniffs \Commenting \RequireOneLinePropertyDocCommentSniff ;
134134use Symplify \EasyCodingStandard \Config \ECSConfig ;
135135
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+
136150return static function (ECSConfig $ ecsConfig ): void {
137151 $ ecsConfig ->rules ([
138152 BinaryOperatorSpacesFixer::class,
You can’t perform that action at this time.
0 commit comments