Skip to content

Commit b3dd2a3

Browse files
authored
Revert "Update fixture for __toString() when parent mixed return, to always add string, as work on DowngradeStringReturnTypeOnToStringRector" (#273)
* Revert "Update fixture for __toString() when parent mixed return, to always a…" This reverts commit 246c7a7. * update branch
1 parent 246c7a7 commit b3dd2a3

File tree

3 files changed

+14
-34
lines changed

3 files changed

+14
-34
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"phpstan/phpstan": "^2.1.8",
1212
"phpstan/phpstan-webmozart-assert": "^2.0",
1313
"phpunit/phpunit": "^11.4",
14-
"rector/rector-src": "dev-main",
14+
"rector/rector-src": "dev-fix-to-string",
1515
"symplify/easy-coding-standard": "^12.3",
1616
"symplify/rule-doc-generator": "^12.2",
1717
"symplify/vendor-patches": "^11.3",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Rector\Tests\DowngradePhp80\Rector\ClassMethod\DowngradeStringReturnTypeOnToStringRector\Fixture;
4+
5+
use Rector\Tests\DowngradePhp80\Rector\ClassMethod\DowngradeStringReturnTypeOnToStringRector\Source\ParentClassWithToStringMixedReturn;
6+
7+
class SkipParentMixedReturn extends ParentClassWithToStringMixedReturn
8+
{
9+
public function __toString()
10+
{
11+
return 'value';
12+
}
13+
}

rules-tests/DowngradePhp80/Rector/ClassMethod/DowngradeStringReturnTypeOnToStringRector/Fixture/with_parent_mixed_return.php.inc

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)