Skip to content

Commit 1baa2ca

Browse files
committed
Merge branch 'master' of ssh://github.com/voku/Simple-PHP-Code-Parser
* 'master' of ssh://github.com/voku/Simple-PHP-Code-Parser: Update actions/cache action to v3 Apply fixes from StyleCI Update codecov/codecov-action action to v3 Update shivammathur/setup-php action to v2.24.0 Update actions/cache action to v2.1.8
2 parents a68a963 + 61fafb7 commit 1baa2ca

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/checkout@v3
2929

3030
- name: Setup PHP
31-
uses: shivammathur/setup-php@2.17.1
31+
uses: shivammathur/setup-php@2.24.0
3232
with:
3333
php-version: ${{ matrix.php }}
3434
coverage: xdebug
@@ -40,7 +40,7 @@ jobs:
4040
run: echo "::set-output name=directory::$(composer config cache-dir)"
4141

4242
- name: Cache composer dependencies
43-
uses: actions/cache@v2.1.7
43+
uses: actions/cache@v3.3.1
4444
with:
4545
path: ${{ steps.composer-cache.outputs.directory }}
4646
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -81,7 +81,7 @@ jobs:
8181
php-coveralls --coverage_clover=build/logs/clover.xml -v
8282
8383
- name: Upload coverage results to Codecov
84-
uses: codecov/codecov-action@v2
84+
uses: codecov/codecov-action@v3
8585
with:
8686
files: build/logs/clover.xml
8787

src/voku/SimplePhpParser/Model/PHPParameter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ private function readPhpDoc($doc, string $parameterName): void
256256
if (!empty($parsedParamTags)) {
257257
foreach ($parsedParamTags as $parsedParamTag) {
258258
if ($parsedParamTag instanceof \phpDocumentor\Reflection\DocBlock\Tags\Param) {
259-
260259
// check only the current "param"-tag
261260
if (\strtoupper($parameterName) !== \strtoupper((string) $parsedParamTag->getVariableName())) {
262261
continue;

src/voku/SimplePhpParser/Parsers/PhpCodeParser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ private static function getCode(
335335
$phpFilePromises[] = $filesystem->detect($path)->then(
336336
function (FileInterface $file) use ($path, $cacheKey) {
337337
return [
338-
'content' => $file->getContents()->then(static function (string $contents) { return $contents; }),
338+
'content' => $file->getContents()->then(static function (string $contents) {
339+
return $contents;
340+
}),
339341
'fileName' => $path,
340342
'cacheKey' => $cacheKey,
341343
];

tests/Dummy3.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
}
99

1010
namespace voku\tests {
11-
1211
use const SORT_ASC as SORT_ASC_TEST;
1312

1413
function foo3(int $foo = 0)
@@ -295,5 +294,4 @@ public static function withClassStringArrayWithCorrectNamespace(): array
295294
return [];
296295
}
297296
}
298-
299297
}

tests/Dummy8.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
final class Dummy8 extends Dummy6
1111
{
12-
1312
/**
1413
* @var class-string<Foooooooo>
1514
*/

0 commit comments

Comments
 (0)