Skip to content

Commit 01fb666

Browse files
authored
Fix phpstan notice $phpVersion on Rector\Config\RectorConfig::phpVersion() (#5193)
* Fix phpstan notice $phpVersion on Rector\Config\RectorConfig::phpVersion() * add value
1 parent 6d5ffbe commit 01fb666

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

phpstan.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ parameters:
264264
- rules/EarlyReturn/Rector/If_/ChangeAndIfToEarlyReturnRector.php
265265

266266
# known value
267-
- '#Method Rector\\Core\\Php\\PhpVersionProvider\:\:provide\(\) should return 50200\|50300\|50400\|50500\|50600\|70000\|70100\|70200\|70300\|70400\|80000\|80100\|80200\|100000 but returns int#'
267+
- '#Method Rector\\Core\\Php\\PhpVersionProvider\:\:provide\(\) should return 50200\|50300\|50400\|50500\|50600\|70000\|70100\|70200\|70300\|70400\|80000\|80100\|80200\|80300\|100000 but returns int#'
268268

269269
# stubs-rector directory exists on target-repository
270270
-
@@ -412,7 +412,7 @@ parameters:
412412
path: utils/ChangelogGenerator
413413

414414
-
415-
message: '#Parameter \#1 \$phpVersion of method Rector\\Config\\RectorConfig\:\:phpVersion\(\) expects 50200\|50300\|50400\|50500\|50600\|70000\|70100\|70200\|70300\|70400\|80000\|80100\|80200\|100000, (.*?) given#'
415+
message: '#Parameter \#1 \$phpVersion of method Rector\\Config\\RectorConfig\:\:phpVersion\(\) expects 50200\|50300\|50400\|50500\|50600\|70000\|70100\|70200\|70300\|70400\|80000\|80100\|80200\|80300\|100000, (.*?) given#'
416416
path: rules-tests
417417

418418
-

src/ValueObject/PhpVersion.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ final class PhpVersion
7474
*/
7575
public const PHP_82 = 80200;
7676

77+
/**
78+
* @var int
79+
*/
80+
public const PHP_83 = 80300;
81+
7782
/**
7883
* @var int
7984
*/

0 commit comments

Comments
 (0)