diff --git a/rules-tests/DowngradePhp81/Rector/ClassMethod/AddReturnTypeWillChangeAttributeRector/Fixture/json_serializable.php.inc b/rules-tests/DowngradePhp81/Rector/ClassMethod/AddReturnTypeWillChangeAttributeRector/Fixture/json_serializable.php.inc new file mode 100644 index 00000000..a3caa9d1 --- /dev/null +++ b/rules-tests/DowngradePhp81/Rector/ClassMethod/AddReturnTypeWillChangeAttributeRector/Fixture/json_serializable.php.inc @@ -0,0 +1,26 @@ + +----- + diff --git a/rules/DowngradePhp81/Rector/ClassMethod/AddReturnTypeWillChangeAttributeRector.php b/rules/DowngradePhp81/Rector/ClassMethod/AddReturnTypeWillChangeAttributeRector.php index 80f60fde..ac8cf356 100644 --- a/rules/DowngradePhp81/Rector/ClassMethod/AddReturnTypeWillChangeAttributeRector.php +++ b/rules/DowngradePhp81/Rector/ClassMethod/AddReturnTypeWillChangeAttributeRector.php @@ -35,6 +35,7 @@ final class AddReturnTypeWillChangeAttributeRector extends AbstractRector 'Countable' => ['count'], 'Iterator' => ['current', 'key', 'next', 'rewind', 'valid'], 'IteratorAggregate' => ['getIterator'], + 'JsonSerializable' => ['jsonSerialize'], 'Stringable' => ['__toString'], ];