Skip to content

Commit 898f2c3

Browse files
authored
Merge pull request #45 from voku/analysis-dj2339
Apply fixes from StyleCI
2 parents 73766c7 + b42b7aa commit 898f2c3

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/voku/SimplePhpParser/Model/PHPParameter.php

-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ private function readPhpDoc($doc, string $parameterName): void
286286
$this->typeFromPhpDocExtended = Utils::modernPhpdoc($parsedParamTagStr);
287287
}
288288
}
289-
290289
} catch (\Exception $e) {
291290
$tmpErrorMessage = $this->name . ':' . ($this->line ?? '?') . ' | ' . \print_r($e->getMessage(), true);
292291
$this->parseError[\md5($tmpErrorMessage)] = $tmpErrorMessage;

src/voku/SimplePhpParser/Model/PHPProperty.php

-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ private function readPhpDoc($doc): void
277277
$this->typeFromPhpDocExtended = Utils::modernPhpdoc($parsedParamTagStr);
278278
}
279279
}
280-
281280
} catch (\Exception $e) {
282281
$tmpErrorMessage = $this->name . ':' . ($this->line ?? '?') . ' | ' . \print_r($e->getMessage(), true);
283282
$this->parseError[\md5($tmpErrorMessage)] = $tmpErrorMessage;

tests/Dummy13.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* @internal
99
*/
10-
readonly final class Dummy13 implements \voku\tests\DummyInterface
10+
final readonly class Dummy13 implements \voku\tests\DummyInterface
1111
{
1212
/**
1313
* @var callable(int): string
@@ -22,8 +22,11 @@ public function __construct(int $lall)
2222
/**
2323
* @return callable(): int<0,1>
2424
*/
25-
public function callableTest(): callable {
26-
return static function() { return 1; };
25+
public function callableTest(): callable
26+
{
27+
return static function () {
28+
return 1;
29+
};
2730
}
2831

2932
/**

0 commit comments

Comments
 (0)