Skip to content

Commit

Permalink
Merge pull request #855 from ergebnis/fix/property
Browse files Browse the repository at this point in the history
Fix: Add property type declarations
  • Loading branch information
localheinz authored Dec 28, 2021
2 parents 0f62c48 + ffe1f5d commit 8b43ce4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 31 deletions.
30 changes: 3 additions & 27 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.16.1@aa7e400908833b10c0333861f86cd48c510b60eb">
<file src="src/Command/NormalizeCommand.php">
<MissingPropertyType occurrences="4">
<code>$differ</code>
<code>$factory</code>
<code>$formatter</code>
<code>$normalizer</code>
</MissingPropertyType>
<MixedArgument occurrences="11">
<code>$composer-&gt;getPackage()-&gt;getExtra()</code>
<MixedArgument occurrences="9">
<code>$composerFile</code>
<code>$composerFile</code>
<code>$composerFile</code>
<code>$composerFile</code>
Expand All @@ -17,28 +11,10 @@
<code>$composerFile</code>
<code>$composerFile</code>
<code>$composerFile</code>
<code>$diff</code>
<code>$formatted-&gt;encoded()</code>
</MixedArgument>
<MixedAssignment occurrences="5">
<code>$composer</code>
<MixedAssignment occurrences="1">
<code>$composerFile</code>
<code>$diff</code>
<code>$formatted</code>
<code>$normalized</code>
</MixedAssignment>
<MixedMethodCall occurrences="10">
<code>createComposer</code>
<code>diff</code>
<code>encoded</code>
<code>encoded</code>
<code>encoded</code>
<code>format</code>
<code>getExtra</code>
<code>getLocker</code>
<code>getPackage</code>
<code>normalize</code>
</MixedMethodCall>
</file>
<file src="test/Integration/Command/NormalizeCommand/AbstractTestCase.php">
<MixedArrayAccess occurrences="1">
Expand Down
8 changes: 4 additions & 4 deletions src/Command/NormalizeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
*/
final class NormalizeCommand extends Command\BaseCommand
{
private $factory;
private $normalizer;
private $formatter;
private $differ;
private Factory $factory;
private Normalizer\NormalizerInterface $normalizer;
private Normalizer\Format\FormatterInterface $formatter;
private Diff\Differ $differ;

public function __construct(
Factory $factory,
Expand Down

0 comments on commit 8b43ce4

Please sign in to comment.