1
0
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:
orklah 2021-12-27 23:22:45 +01:00
parent ce1f992bcc
commit bd1eb1611e
2 changed files with 2 additions and 3 deletions

View File

@ -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';

View File

@ -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;