Skip to content

Commit 2b24ead

Browse files
Apply "visibility_required" CS rule to constants
php-cs-fixer fix --rules='{"visibility_required": ["property", "method", "const"]}'
1 parent 81b0dd8 commit 2b24ead

16 files changed

+27
-27
lines changed

Argument/BoundArgument.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
*/
1717
final class BoundArgument implements ArgumentInterface
1818
{
19-
const SERVICE_BINDING = 0;
20-
const DEFAULTS_BINDING = 1;
21-
const INSTANCEOF_BINDING = 2;
19+
public const SERVICE_BINDING = 0;
20+
public const DEFAULTS_BINDING = 1;
21+
public const INSTANCEOF_BINDING = 2;
2222

2323
private static $sequence = 0;
2424

Compiler/PassConfig.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
*/
2323
class PassConfig
2424
{
25-
const TYPE_AFTER_REMOVING = 'afterRemoving';
26-
const TYPE_BEFORE_OPTIMIZATION = 'beforeOptimization';
27-
const TYPE_BEFORE_REMOVING = 'beforeRemoving';
28-
const TYPE_OPTIMIZE = 'optimization';
29-
const TYPE_REMOVE = 'removing';
25+
public const TYPE_AFTER_REMOVING = 'afterRemoving';
26+
public const TYPE_BEFORE_OPTIMIZATION = 'beforeOptimization';
27+
public const TYPE_BEFORE_REMOVING = 'beforeRemoving';
28+
public const TYPE_OPTIMIZE = 'optimization';
29+
public const TYPE_REMOVE = 'removing';
3030

3131
private $mergePass;
3232
private $afterRemovingPasses = [];

ContainerInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
*/
2525
interface ContainerInterface extends PsrContainerInterface
2626
{
27-
const RUNTIME_EXCEPTION_ON_INVALID_REFERENCE = 0;
28-
const EXCEPTION_ON_INVALID_REFERENCE = 1;
29-
const NULL_ON_INVALID_REFERENCE = 2;
30-
const IGNORE_ON_INVALID_REFERENCE = 3;
31-
const IGNORE_ON_UNINITIALIZED_REFERENCE = 4;
27+
public const RUNTIME_EXCEPTION_ON_INVALID_REFERENCE = 0;
28+
public const EXCEPTION_ON_INVALID_REFERENCE = 1;
29+
public const NULL_ON_INVALID_REFERENCE = 2;
30+
public const IGNORE_ON_INVALID_REFERENCE = 3;
31+
public const IGNORE_ON_UNINITIALIZED_REFERENCE = 4;
3232

3333
/**
3434
* Sets a service.

Dumper/PhpDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ class PhpDumper extends Dumper
5454
/**
5555
* Characters that might appear in the generated variable name as first character.
5656
*/
57-
const FIRST_CHARS = 'abcdefghijklmnopqrstuvwxyz';
57+
public const FIRST_CHARS = 'abcdefghijklmnopqrstuvwxyz';
5858

5959
/**
6060
* Characters that might appear in the generated variable name as any but the first character.
6161
*/
62-
const NON_FIRST_CHARS = 'abcdefghijklmnopqrstuvwxyz0123456789_';
62+
public const NON_FIRST_CHARS = 'abcdefghijklmnopqrstuvwxyz0123456789_';
6363

6464
private $definitionVariables;
6565
private $referenceVariables;

Loader/Configurator/AbstractConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
abstract class AbstractConfigurator
2222
{
23-
const FACTORY = 'unknown';
23+
public const FACTORY = 'unknown';
2424

2525
/** @internal */
2626
protected $definition;

Loader/Configurator/AliasConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class AliasConfigurator extends AbstractServiceConfigurator
2020
{
21-
const FACTORY = 'alias';
21+
public const FACTORY = 'alias';
2222

2323
use Traits\DeprecateTrait;
2424
use Traits\PublicTrait;

Loader/Configurator/ContainerConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
class ContainerConfigurator extends AbstractConfigurator
2828
{
29-
const FACTORY = 'container';
29+
public const FACTORY = 'container';
3030

3131
private $container;
3232
private $loader;

Loader/Configurator/DefaultsConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
class DefaultsConfigurator extends AbstractServiceConfigurator
2121
{
22-
const FACTORY = 'defaults';
22+
public const FACTORY = 'defaults';
2323

2424
use Traits\AutoconfigureTrait;
2525
use Traits\AutowireTrait;

Loader/Configurator/InlineServiceConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class InlineServiceConfigurator extends AbstractConfigurator
2020
{
21-
const FACTORY = 'inline';
21+
public const FACTORY = 'inline';
2222

2323
use Traits\ArgumentTrait;
2424
use Traits\AutowireTrait;

Loader/Configurator/InstanceofConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class InstanceofConfigurator extends AbstractServiceConfigurator
2020
{
21-
const FACTORY = 'instanceof';
21+
public const FACTORY = 'instanceof';
2222

2323
use Traits\AutowireTrait;
2424
use Traits\BindTrait;

0 commit comments

Comments
 (0)