Skip to content

Commit 9fd316c

Browse files
committed
Apply rector AddTypeToConstRector #12152
1 parent 05c8604 commit 9fd316c

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Api/Output/PaginationTypeFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class PaginationTypeFactory implements AbstractFactoryInterface
2020
{
21-
private const PATTERN = '~^(.*)Pagination$~';
21+
private const string PATTERN = '~^(.*)Pagination$~';
2222

2323
public function canCreate(ContainerInterface $container, $requestedName): bool
2424
{

src/Service/Bvr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929
final class Bvr
3030
{
31-
private const TABLE = [
31+
private const array TABLE = [
3232
[0, 9, 4, 6, 8, 2, 7, 1, 3, 5],
3333
[9, 4, 6, 8, 2, 7, 1, 3, 5, 0],
3434
[4, 6, 8, 2, 7, 1, 3, 5, 0, 9],

src/Service/DataRestorer.php

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

1111
class DataRestorer
1212
{
13-
private const NULL_TOKEN = 'MY_SECRET_NULL_TOKEN';
13+
private const string NULL_TOKEN = 'MY_SECRET_NULL_TOKEN';
1414

1515
private array $restoreQueries = [];
1616

src/Service/ImageResizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class ImageResizer
1515
{
16-
private const CACHE_IMAGE_PATH = 'data/cache/images/';
16+
private const string CACHE_IMAGE_PATH = 'data/cache/images/';
1717

1818
public function __construct(
1919
private readonly ImagineInterface $imagine,

tests/Model/Traits/ImageTest.php

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

1313
final class ImageTest extends TestCase
1414
{
15-
private const TEMP = '/tmp/felix';
15+
private const string TEMP = '/tmp/felix';
1616

1717
use TestWithContainer {
1818
tearDown as tearDownWithContainer;

0 commit comments

Comments
 (0)