Skip to content

Commit

Permalink
fix some phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lukadschaak committed Jan 2, 2024
1 parent fbc3419 commit 780962a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
10 changes: 0 additions & 10 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ parameters:
count: 1
path: src/Command/LoadFixturesCommand.php

-
message: "#^Method Neusta\\\\Pimcore\\\\FixtureBundle\\\\DependencyInjection\\\\NeustaPimcoreFixtureExtension\\:\\:loadInternal\\(\\) has parameter \\$mergedConfig with no value type specified in iterable type array\\.$#"
count: 1
path: src/DependencyInjection/NeustaPimcoreFixtureExtension.php

-
message: "#^Method Neusta\\\\Pimcore\\\\FixtureBundle\\\\Documents\\\\Model\\\\EditableConfig\\:\\:__construct\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
count: 1
path: src/Documents/Model/EditableConfig.php

-
message: "#^Call to an undefined method Pimcore\\\\Db\\\\ConnectionInterface\\:\\:getConfiguration\\(\\)\\.$#"
count: 3
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<ini name="display_errors" value="On"/>
<ini name="error_reporting" value="-1"/>
<env name="KERNEL_CLASS" value="TestKernel"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
</php>

<testsuites>
Expand Down
3 changes: 3 additions & 0 deletions src/DependencyInjection/NeustaPimcoreFixtureExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

class NeustaPimcoreFixtureExtension extends ConfigurableExtension
{
/**
* @param array<string, mixed> $mergedConfig
*/
protected function loadInternal(array $mergedConfig, ContainerBuilder $container): void
{
$loader = new YamlFileLoader($container, new FileLocator(\dirname(__DIR__, 2) . '/config'));
Expand Down
3 changes: 3 additions & 0 deletions src/Documents/Model/EditableConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

class EditableConfig
{
/**
* @param string|array<string> $data
*/
public function __construct(
public string $type,
public string $name,
Expand Down

0 comments on commit 780962a

Please sign in to comment.