Skip to content

Commit d6a4a63

Browse files
authored
Merge pull request #87 from simPod/const-visibility
Declare const visibility
2 parents 68ca1ba + be21a3b commit d6a4a63

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

src/Deque.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class Deque implements Sequence
2020
use Traits\GenericSequence;
2121
use Traits\SquaredCapacity;
2222

23-
const MIN_CAPACITY = 8;
23+
public const MIN_CAPACITY = 8;
2424

2525
protected function shouldIncreaseCapacity(): bool
2626
{

src/Map.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class Map implements Collection, \ArrayAccess
2222
use Traits\GenericCollection;
2323
use Traits\SquaredCapacity;
2424

25-
const MIN_CAPACITY = 8;
25+
public const MIN_CAPACITY = 8;
2626

2727
/**
2828
* @var array internal array to store pairs

src/PriorityQueue.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ final class PriorityQueue implements Collection
1818
use Traits\GenericCollection;
1919
use Traits\SquaredCapacity;
2020

21-
/**
22-
* @var int
23-
*/
24-
const MIN_CAPACITY = 8;
21+
public const MIN_CAPACITY = 8;
2522

2623
/**
2724
* @var array<int, PriorityNode<TValue>>

src/Set.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class Set implements Collection, \ArrayAccess
1717
{
1818
use Traits\GenericCollection;
1919

20-
const MIN_CAPACITY = Map::MIN_CAPACITY;
20+
public const MIN_CAPACITY = Map::MIN_CAPACITY;
2121

2222
/**
2323
* @var Map internal map to store the values.

src/Vector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class Vector implements Sequence
1818
use Traits\GenericSequence;
1919
use Traits\Capacity;
2020

21-
const MIN_CAPACITY = 8;
21+
public const MIN_CAPACITY = 8;
2222

2323
protected function getGrowthFactor(): float
2424
{

0 commit comments

Comments
 (0)