Self-explanatory.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rARCf58642a8ab99: Add unit tests for `ArcanistFilenameLinter`
arc unit
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
See inline.
src/lint/linter/__tests__/ArcanistLinterTestCase.php | ||
---|---|---|
211 | I don't think this is right? $pos will alway be a scalar, and this will always cast it into array($pos) and always discard character information. $ php -r 'list($a, $b) = explode(":", "1:2:3"); $b = (array)$b; print_r($b);' Array ( [0] => 2 ) |
Comment Actions
The code would work as written if list($a, $b) unpacked the first argument into $a and all remaining arguments into $b, but list() does not do that. Maybe that was the thinking?