Skip to content

Commit 153ae66

Browse files
authored
Merge pull request #203 from phpDocumentor/php73
Downgrade to php 7.3
2 parents 8ea4d87 + f4df84e commit 153ae66

21 files changed

+445
-480
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.4 || ^8.0",
13+
"php": "^7.3 || ^8.0",
1414
"phpdocumentor/reflection-common": "^2.0",
1515
"phpstan/phpdoc-parser": "^1.13",
1616
"doctrine/deprecations": "^1.0"
@@ -42,7 +42,7 @@
4242
},
4343
"config": {
4444
"platform": {
45-
"php": "7.4.0"
45+
"php": "7.3.0"
4646
},
4747
"allow-plugins": {
4848
"phpstan/extension-installer": true

composer.lock

Lines changed: 343 additions & 412 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
66
use Rector\Config\RectorConfig;
7+
use Rector\Set\ValueObject\DowngradeLevelSetList;
78
use Rector\Set\ValueObject\LevelSetList;
89

910
return static function (RectorConfig $rectorConfig): void {
@@ -21,6 +22,6 @@
2122

2223
// define sets of rules
2324
$rectorConfig->sets([
24-
LevelSetList::UP_TO_PHP_74
25+
DowngradeLevelSetList::DOWN_TO_PHP_73
2526
]);
2627
};

src/PseudoTypes/ArrayShape.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class ArrayShape implements PseudoType
2626
{
2727
/** @var ArrayShapeItem[] */
28-
private array $items;
28+
private $items;
2929

3030
public function __construct(ArrayShapeItem ...$items)
3131
{

src/PseudoTypes/ArrayShapeItem.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
2020

2121
final class ArrayShapeItem
2222
{
23-
private ?string $key;
24-
private Type $value;
25-
private bool $optional;
23+
/** @var string|null */
24+
private $key;
25+
/** @var Type */
26+
private $value;
27+
/** @var bool */
28+
private $optional;
2629

2730
public function __construct(?string $key, ?Type $value, bool $optional)
2831
{

src/PseudoTypes/ConstExpression.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
/** @psalm-immutable */
2323
final class ConstExpression implements PseudoType
2424
{
25-
private Type $owner;
26-
private string $expression;
25+
/** @var Type */
26+
private $owner;
27+
/** @var string */
28+
private $expression;
2729

2830
public function __construct(Type $owner, string $expression)
2931
{

src/PseudoTypes/FloatValue.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
/** @psalm-immutable */
2121
class FloatValue implements PseudoType
2222
{
23-
private float $value;
23+
/** @var float */
24+
private $value;
2425

2526
public function __construct(float $value)
2627
{

src/PseudoTypes/IntegerRange.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@
2424
*/
2525
final class IntegerRange extends Integer implements PseudoType
2626
{
27-
private string $minValue;
27+
/** @var string */
28+
private $minValue;
2829

29-
private string $maxValue;
30+
/** @var string */
31+
private $maxValue;
3032

3133
public function __construct(string $minValue, string $maxValue)
3234
{

src/PseudoTypes/IntegerValue.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
/** @psalm-immutable */
2121
final class IntegerValue implements PseudoType
2222
{
23-
private int $value;
23+
/** @var int */
24+
private $value;
2425

2526
public function __construct(int $value)
2627
{

src/PseudoTypes/StringValue.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
/** @psalm-immutable */
2323
class StringValue implements PseudoType
2424
{
25-
private string $value;
25+
/** @var string */
26+
private $value;
2627

2728
public function __construct(string $value)
2829
{

0 commit comments

Comments
 (0)