Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Add property type declarations #855

Merged
merged 1 commit into from Dec 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 3 additions & 27 deletions psalm-baseline.xml
@@ -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
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