Commit 9c427fb
committed
minor #4521 Remove superfluous leading backslash, closes 4520 (ktomk)
This PR was squashed before being merged into the 2.15 branch (closes #4521).
Discussion
----------
Remove superfluous leading backslash, closes 4520
In string context, there is no need to prefix the exception class-name
of the exception with any backslashes as these are always in the global
name-space.
Looks like the prefix is only useful for verbatim class names which is not
addressed in this issue (see #4068 for more details on verbatim class-
names and also a generic resolution suggestion for many fixers).
Additionally minor changes regarding standard (Phpstorm) inspections.
Closes: #4520
Related: #4068
Commits
-------
7eb6087 Remove superfluous leading backslash, closes 4520File tree
2 files changed
+6
-5
lines changed- src/Fixer/PhpUnit
- tests/Fixer/PhpUnit
2 files changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
| 249 | + | |
249 | 250 | | |
250 | | - | |
| 251 | + | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| |||
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
278 | | - | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | | - | |
| 282 | + | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
0 commit comments