Skip to content

Commit

Permalink
Refresh SA baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Jun 15, 2022
1 parent 6034fd4 commit 8627ac8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ parameters:
count: 1
path: tests/Behat/Page/Admin/Channel/UpdatePage.php

-
message: "#^Method Tests\\\\BabDev\\\\SyliusProductSamplesPlugin\\\\Behat\\\\Page\\\\Admin\\\\Channel\\\\UpdatePage\\:\\:getSampleProductCodePrefix\\(\\) should return string but returns array\\|bool\\|string\\.$#"
count: 1
path: tests/Behat/Page/Admin/Channel/UpdatePage.php

-
message: "#^Method Tests\\\\BabDev\\\\SyliusProductSamplesPlugin\\\\Behat\\\\Page\\\\Admin\\\\Product\\\\UpdateSimpleProductPage\\:\\:getOriginalSamplePriceForChannel\\(\\) should return string but returns array\\|bool\\|string\\.$#"
count: 1
Expand Down
5 changes: 1 addition & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ parameters:

excludePaths:
# Makes PHPStan crash
# - 'src/DependencyInjection/Configuration.php'
- 'src/DependencyInjection/Configuration.php'

# Test dependencies
- 'tests/Application/app/**.php'
- 'tests/Application/src/**.php'

ignoreErrors:
- '/Parameter #1 \$configuration of method Symfony\\Component\\DependencyInjection\\Extension\\Extension::processConfiguration\(\) expects Symfony\\Component\\Config\\Definition\\ConfigurationInterface, Symfony\\Component\\Config\\Definition\\ConfigurationInterface\|null given\./'
16 changes: 16 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@
<code>$this-&gt;extension ?: null</code>
</MixedReturnStatement>
</file>
<file src="src/DependencyInjection/BabDevSyliusProductSamplesExtension.php">
<MixedArgument occurrences="1">
<code>$mergedConfig['sample_variant_code_prefix']</code>
</MixedArgument>
</file>
<file src="src/DependencyInjection/Configuration.php">
<PossiblyNullReference occurrences="1">
<code>end</code>
</PossiblyNullReference>
<PossiblyUndefinedMethod occurrences="1">
<code>end</code>
</PossiblyUndefinedMethod>
<UnusedMethodCall occurrences="1">
<code>end</code>
</UnusedMethodCall>
</file>
<file src="src/EventListener/SampleVariantGeneratorListener.php">
<ArgumentTypeCoercion occurrences="1">
<code>$channel</code>
Expand Down

0 comments on commit 8627ac8

Please sign in to comment.