File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 55[ ![ Latest stable version] ( https://img.shields.io/packagist/v/kubawerlos/php-cs-fixer-custom-fixers.svg?label=current%20version )] ( https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers )
66[ ![ PHP version] ( https://img.shields.io/packagist/php-v/kubawerlos/php-cs-fixer-custom-fixers.svg )] ( https://php.net )
77[ ![ License] ( https://img.shields.io/github/license/kubawerlos/php-cs-fixer-custom-fixers.svg )] ( LICENSE )
8- ![ Tests] ( https://img.shields.io/badge/tests-3733 -brightgreen.svg )
8+ ![ Tests] ( https://img.shields.io/badge/tests-3734 -brightgreen.svg )
99[ ![ Downloads] ( https://img.shields.io/packagist/dt/kubawerlos/php-cs-fixer-custom-fixers.svg )] ( https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers )
1010
1111[ ![ CI status] ( https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions/workflows/ci.yaml/badge.svg )] ( https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions/workflows/ci.yaml )
Original file line number Diff line number Diff line change @@ -146,6 +146,11 @@ class Bar {
146146 PHP,
147147 ];
148148
149+ yield 'anonymous class ' => [
150+ '<?php new class () { public const int BAR = 0; }; ' ,
151+ '<?php new class () { public const BAR = 0; }; ' ,
152+ ];
153+
149154 yield 'unknown other constant ' => [
150155 '<?php class Foo { public const mixed BAR = CONSTANT_FROM_FAR_AWAY; } ' ,
151156 '<?php class Foo { public const BAR = CONSTANT_FROM_FAR_AWAY; } ' ,
You can’t perform that action at this time.
0 commit comments