We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5572ee7 commit 3fb34c9Copy full SHA for 3fb34c9
tests/src/FixtureContentParser.php
@@ -56,7 +56,7 @@ public function parse(string $fixturePath): array
56
];
57
58
// phpcs:disable VariableAnalysis
59
- foreach ($this->readFile($fixturePath) as list($lineNum, $line)) {
+ foreach ($this->readFile($fixturePath) as $lineNum => $line) {
60
$this->readLine($lineNum, $line, $accumulator);
61
}
62
// phpcs:enable
@@ -154,8 +154,8 @@ private function readFile(string $file)
154
155
$line = fgets($handle);
156
while ($line !== false) {
157
+ yield $lineNum++ => rtrim($line, "\r\n");
158
- yield [$lineNum++, rtrim($line, "\r\n")];
159
160
161
fclose($handle);
0 commit comments