Skip to content

Commit

Permalink
Update PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Nov 13, 2023
1 parent acdda15 commit e524110
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ jobs:

-
name: Run PHPStan
run: vendor/bin/phpstan analyse -c phpstan.neon
run: vendor/bin/phpstan analyse

-
name: Run Psalm
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parameters:
- src
- tests/Behat

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

Expand Down
3 changes: 0 additions & 3 deletions tests/InMemory/Client/Api/InMemoryApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use Http\Promise\Promise;
use Psr\Http\Message\StreamInterface;
use Tests\Webgriffe\SyliusAkeneoPlugin\InMemory\Client\Api\Model\ResourceInterface;
use Webmozart\Assert\Assert;

/**
* @template T of ResourceInterface
Expand All @@ -46,8 +45,6 @@ abstract public static function addResource(ResourceInterface $resource): void;
public function create(string $code, array $data = []): int
{
$class = $this->getResourceClass();
Assert::isInstanceOf($class, ResourceInterface::class);

$resources = $this->getResources();
$resources[$code] = call_user_func([$class, 'create'], [$code, $data]);

Expand Down

0 comments on commit e524110

Please sign in to comment.