Commit ca82714
authored
Add test case for automatic string conversion (#33)
* Add test case for automatic string conversion
This may be confusing because if PHP encounters an undefined symbol, it
will issue a warning and try converting it to a string. Because of this
fallback, using unquoted strings may seem like valid PHP, but it's not
doing what you might think it's doing; it's actually still using a
string. In a future version of php, this fallback may be removed, so
it's recommended to avoid it (see the warning here:
https://www.php.net/manual/en/migration72.deprecated.php).
* Add case to test
* Fix another test that uses that fixture1 parent 92f6325 commit ca82714
File tree
2 files changed
+5
-1
lines changed- tests/Sniffs/Imports
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
188 | | - | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
0 commit comments