mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
immediately rewritten array index
This commit is contained in:
parent
ce1f992bcc
commit
bd1eb1611e
@ -153,7 +153,6 @@ class BuildInfoCollector
|
||||
if (isset($this->env['APPVEYOR']) && $this->env['APPVEYOR'] && isset($this->env['APPVEYOR_BUILD_NUMBER'])) {
|
||||
$this->readEnv['CI_BUILD_NUMBER'] = $this->env['APPVEYOR_BUILD_NUMBER'];
|
||||
$this->readEnv['CI_JOB_ID'] = $this->env['APPVEYOR_JOB_NUMBER'];
|
||||
$this->readEnv['CI_BRANCH'] = $this->env['APPVEYOR_REPO_BRANCH'];
|
||||
$this->readEnv['CI_PR_NUMBER'] = $this->env['APPVEYOR_PULL_REQUEST_NUMBER'] ?? '';
|
||||
$this->env['CI_NAME'] = 'AppVeyor';
|
||||
|
||||
|
@ -101,8 +101,8 @@ class DocblockParser
|
||||
unset($lines[$k]);
|
||||
} else {
|
||||
// Strip the leading *, if present.
|
||||
$lines[$k] = str_replace("\t", ' ', $line);
|
||||
$lines[$k] = preg_replace('/^ *\*/', '', $line);
|
||||
$lines[$k] = str_replace("\t", ' ', $line[$k]);
|
||||
$lines[$k] = preg_replace('/^ *\*/', '', $line[$k]);
|
||||
}
|
||||
|
||||
$line_offset += $original_line_length + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user