Skip to content

Commit a293468

Browse files
Merge branch '5.1' into 5.2
* 5.1: Update .php_cs.dist Apply "visibility_required" CS rule to constants
2 parents 7a72213 + 2707eb5 commit a293468

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
@@ -56,12 +56,12 @@ class PhpDumper extends Dumper
5656
/**
5757
* Characters that might appear in the generated variable name as first character.
5858
*/
59-
const FIRST_CHARS = 'abcdefghijklmnopqrstuvwxyz';
59+
public const FIRST_CHARS = 'abcdefghijklmnopqrstuvwxyz';
6060

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

6666
private $definitionVariables;
6767
private $referenceVariables;

Loader/Configurator/AbstractConfigurator.php

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

2222
abstract class AbstractConfigurator
2323
{
24-
const FACTORY = 'unknown';
24+
public const FACTORY = 'unknown';
2525

2626
/**
2727
* @var callable(mixed, bool $allowService)|null

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
@@ -27,7 +27,7 @@
2727
*/
2828
class ContainerConfigurator extends AbstractConfigurator
2929
{
30-
const FACTORY = 'container';
30+
public const FACTORY = 'container';
3131

3232
private $container;
3333
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 = 'service';
21+
public const FACTORY = 'service';
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)