-
-
Notifications
You must be signed in to change notification settings - Fork 737
Closed
rectorphp/rector-src
#7590Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | last dev-main |
| Installed as | composer dependency |
Minimal PHP Code Causing Issue
See https://getrector.com/demo/7ace8e91-e71e-4705-b944-177fe6ecda3f
<?php
$string = 'Hello world';
$string[5] = $string[5] ^ '\x06';
echo $string, "\n";Rector changes:
$string = 'Hello world';
-$string[5] = $string[5] ^ '\x06';
+$string[5] ^= '\x06';
echo $string, "\n";But this breaks the code: https://3v4l.org/MC8JK
Responsible rules
CombinedAssignRector
Expected Behavior
Code should not be changed.