rector/rules-tests
Abdul Malik Ikhsan 0ac5412aa0
[Php80] Add default case when variable initialized on ChangeSwitchToMatchRector (#6230)
* Add failing test fixture for ChangeSwitchToMatchRector

# Failing Test for ChangeSwitchToMatchRector

Based on https://getrector.org/demo/f7f2ba48-3c19-4fdb-bc0a-e956e037eefd

It's important to add the default case to prevent this error when passing another code:
```
Fatal error: Uncaught UnhandledMatchError: Unhandled match value of type int
```

https://3v4l.org/E64Um

* Closes #6216

* phpstan

* phpstan

Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-04-25 09:07:36 +02:00
..
2021-04-23 18:14:51 +00:00
2021-04-23 18:14:51 +00:00
2021-04-23 18:14:51 +00:00