mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-26 12:52:36 +00:00
Add SetcookieRector
This commit is contained in:
parent
b5a6f1955b
commit
d6effd60d4
|
@ -1,4 +1,4 @@
|
|||
# All 442 Rectors Overview
|
||||
# All 443 Rectors Overview
|
||||
|
||||
- [Projects](#projects)
|
||||
- [General](#general)
|
||||
|
@ -6201,6 +6201,24 @@ Changes heredoc/nowdoc that contains closing word to safe wrapper name
|
|||
|
||||
<br>
|
||||
|
||||
### `SetcookieRector`
|
||||
|
||||
- class: `Rector\Php73\Rector\FuncCall\SetcookieRector`
|
||||
|
||||
Convert setcookie argument to PHP7.3 option array
|
||||
|
||||
```diff
|
||||
-setcookie('name', $value, 360);
|
||||
+setcookie('name', $value, ['expires' => 360]);
|
||||
```
|
||||
|
||||
```diff
|
||||
-setcookie('name', $name, 0, '', '', true, true);
|
||||
+setcookie('name', $name, ['expires' => 0, 'path' => '', 'domain' => '', 'secure' => true, 'httponly' => true]);
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
### `StringifyStrNeedlesRector`
|
||||
|
||||
- class: `Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector`
|
||||
|
|
Loading…
Reference in New Issue
Block a user