Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ app-install: ## to install app
composer install --prefer-dist

app-security-check: ## to check if any security issues in the PHP dependencies
composer audit --abandoned=report
composer audit

app-static-analysis: ## to run static analysis
vendor/bin/phpstan analyze --memory-limit=-1
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"friendsofphp/php-cs-fixer": "^3.0",
"nikic/php-parser": "^5.4",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^10.5",
"phpunit/phpunit": "^11.5",
"symfony/var-dumper": "^6.4"
},
"minimum-stability": "dev",
Expand Down
4 changes: 3 additions & 1 deletion tests/Unit/Rules/BannedNodesRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Scalar\LNumber;
use PhpParser\Node\Scalar\String_;
use PHPStan\Analyser\CollectedDataEmitter;
use PHPStan\Analyser\NodeCallbackInvoker;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\NonIgnorableRuleError;
Expand All @@ -42,7 +43,7 @@ class BannedNodesRuleTest extends TestCase
{
private BannedNodesRule $rule;

private Scope&NodeCallbackInvoker&MockObject $scope;
private CollectedDataEmitter&Scope&NodeCallbackInvoker&MockObject $scope;

/**
* {@inheritdoc}
Expand All @@ -62,6 +63,7 @@ protected function setUp(): void
);

$this->scope = $this->createMockForIntersectionOfInterfaces([
CollectedDataEmitter::class,
NodeCallbackInvoker::class,
Scope::class,
]);
Expand Down
4 changes: 3 additions & 1 deletion tests/Unit/Rules/BannedUseTestRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\Use_;
use PhpParser\Node\Stmt\UseUse;
use PHPStan\Analyser\CollectedDataEmitter;
use PHPStan\Analyser\NodeCallbackInvoker;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\NonIgnorableRuleError;
Expand All @@ -32,7 +33,7 @@ class BannedUseTestRuleTest extends TestCase
{
private BannedUseTestRule $rule;

private NodeCallbackInvoker&Scope&MockObject $scope;
private CollectedDataEmitter&Scope&NodeCallbackInvoker&MockObject $scope;

/**
* {@inheritdoc}
Expand All @@ -45,6 +46,7 @@ protected function setUp(): void
);

$this->scope = $this->createMockForIntersectionOfInterfaces([
CollectedDataEmitter::class,
NodeCallbackInvoker::class,
Scope::class,
]);
Expand Down
Loading