Skip to content

Commit cb287b2

Browse files
committed
Consistent constructor
1 parent 1fe4eef commit cb287b2

6 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/Comments.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* Class to manage the comments of a translation.
14+
*
15+
* @phpstan-consistent-constructor
1416
*/
1517
class Comments implements JsonSerializable, Countable, IteratorAggregate
1618
{

src/Flags.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* Class to manage the flags of a translation.
14+
*
15+
* @phpstan-consistent-constructor
1416
*/
1517
class Flags implements JsonSerializable, Countable, IteratorAggregate
1618
{

src/Headers.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
/**
1414
* Class to manage the headers of translations.
15+
*
16+
* @phpstan-consistent-constructor
1517
*/
1618
class Headers implements JsonSerializable, Countable, IteratorAggregate
1719
{

src/References.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* Class to manage the references of a translation.
14+
*
15+
* @phpstan-consistent-constructor
1416
*/
1517
class References implements JsonSerializable, Countable, IteratorAggregate
1618
{
@@ -24,6 +26,10 @@ public static function __set_state(array $state): References
2426
return $references;
2527
}
2628

29+
public function __construct()
30+
{
31+
}
32+
2733
public function __debugInfo()
2834
{
2935
return $this->toArray();

src/Translation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
/**
77
* Class to manage an individual translation.
8+
*
9+
* @phpstan-consistent-constructor
810
*/
911
class Translation
1012
{

src/Translations.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
/**
1414
* Class to manage a collection of translations under the same domain.
15+
*
16+
* @phpstan-consistent-constructor
1517
*/
1618
class Translations implements Countable, IteratorAggregate
1719
{

0 commit comments

Comments
 (0)