Skip to content
Draft
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
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"type": "phpstan-extension",
"require": {
"php": "^8.0",
"phpstan/phpstan": "^1.4.6",
"illuminate/view": "^8.82 || ^9",
"phpstan/phpstan": "^1.8.9",
"illuminate/view": "^8.82 || ^9.0 || ^10.0",
"symplify/template-phpstan-compiler": "^10.0.20",
"illuminate/filesystem": "^8.82 || ^9.0",
"illuminate/contracts": "^8.82 || ^9.0"
"illuminate/filesystem": "^8.82 || ^9.0 || ^10.0",
"illuminate/contracts": "^8.82 || ^9.0 || ^10.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-latest",
"orchestra/testbench": "^6.24 || ^7.0",
"orchestra/testbench": "^6.24 || ^7.0 || ^8.0",
"doctrine/coding-standard": "^9.0",
"symplify/easy-testing": "^10.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Rules/BladeRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use PhpParser\Node;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\Registry;
use PHPStan\Rules\DirectRegistry;
use PHPStan\Rules\Rule;
use PHPStan\Rules\RuleError;
use Vural\PHPStanBladeRule\NodeAnalyzer\BladeViewMethodsMatcher;
Expand All @@ -25,7 +25,7 @@ public function __construct(
private LaravelViewFunctionMatcher $laravelViewFunctionMatcher,
private ViewRuleHelper $ruleHelper
) {
$this->ruleHelper->setRegistry(new Registry($rules));
$this->ruleHelper->setRegistry(new DirectRegistry($rules));
}

public function getNodeType(): string
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/ViewRuleHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private function processTemplateFilePath(

$fileAnalyser = $this->fileAnalyserProvider->provide();

$fileAnalyserResult = $fileAnalyser->analyseFile($tmpFilePath, [], $this->registry, null);
$fileAnalyserResult = $fileAnalyser->analyseFile($tmpFilePath, [], $this->registry, /* TODO set collector registry */, null);

$ruleErrors = $fileAnalyserResult->getErrors();

Expand Down