-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Privatization] Do not remove comment on ChangeReadOnlyPropertyWithDefaultValueToConstantRector #3204
Conversation
…faultValueToConstantRector
Fixed 🎉 |
It seems cause error in
https://github.com/rectorphp/rector-src/actions/runs/3706328433/jobs/6281403238 |
@TomasVotruba it seems due to new `phpdoc-parser release https://github.com/phpstan/phpdoc-parser/releases/tag/1.15.1 |
Let's pin to use pin to phpstan/phpdoc-parser 1.15.0 |
All checks have passed 🎉 @TomasVotruba it is ready for review. |
Thanks 👍 Is this solved with phpdoc-parser 1.15.1? |
That's different issue. The The issue on To reproduce the issue on cd rector-downgrade-php
composer update
vendor/bin/phpunit rules-tests/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector/DowngradePropertyPromotionRectorTest.php
PHPUnit 9.5.27 by Sebastian Bergmann and contributors.
.....F.. 8 / 8 (100%)
Time: 00:00.854, Memory: 72.50 MB
There was 1 failure:
1) Rector\Tests\DowngradePhp80\Rector\Class_\DowngradePropertyPromotionRector\DowngradePropertyPromotionRectorTest::test with data set #5 ('/Users/samsonasik/www/rector-...hp.inc')
Failed asserting that string matches format description.
--- Expected
+++ Actual
@@ @@
class ArrayShapes
{
/**
- * @var array<string, array{\stdClass, \Exception}>
+ * @var array<string, array{\stdClass, \Exception, ...}>
*/
private array $value;
/** @param array<string, array{\stdClass, \Exception}> $value */
/Users/samsonasik/www/rector-downgrade-php/vendor/rector/rector-src/packages/Testing/PHPUnit/AbstractRectorTestCase.php:186
/Users/samsonasik/www/rector-downgrade-php/vendor/rector/rector-src/packages/Testing/PHPUnit/AbstractRectorTestCase.php:119
/Users/samsonasik/www/rector-downgrade-php/rules-tests/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector/DowngradePropertyPromotionRectorTest.php:17 By pin to composer require phpstan/phpdoc-parser:1.15.0
./composer.json has been updated
Running composer update phpstan/phpdoc-parser
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 1 update, 0 removals
- Downgrading phpstan/phpdoc-parser (1.15.1 => 1.15.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
- Downloading phpstan/phpdoc-parser (1.15.0)
No patches supplied.
Gathering patches for dependencies. This might take a minute.
- Downgrading phpstan/phpdoc-parser (1.15.1 => 1.15.0): Extracting archive
Generating autoload files
61 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
phpstan/extension-installer: Extensions installed
No security vulnerability advisories found
➜ rector-downgrade-php git:(main) ✗ vendor/bin/phpunit rules-tests/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector/DowngradePropertyPromotionRectorTest.php
PHPUnit 9.5.27 by Sebastian Bergmann and contributors.
........ 8 / 8 (100%)
Time: 00:00.925, Memory: 82.50 MB
OK (8 tests, 16 assertions) |
The array shape bug is due to new sealed config on ArrayShapeNode on phpdoc-parser 1.15.1 |
The issue on phpdoc-parser 1.15.1 ArrayShape is, the sealed default is true |
I am merging it ;) |
The comment on
ChangeReadOnlyPropertyWithDefaultValueToConstantRector
should be mirrored during transformation.