-
-
Notifications
You must be signed in to change notification settings - Fork 5
Upgrade phpstan and laravel, revert reveal/template-phpstan-compiler #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -4,6 +4,6 @@ | |||||
}} | ||||||
----- | ||||||
<?php | ||||||
/** file: foo.blade.php, line: 1 */ echo e(/** @var string $foo */ | ||||||
/** file: foo.blade.php, line: 1 */ echo e(/** @var string $foo */ | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a fixture for a test and should not be styled
Suggested change
|
||||||
/** file: foo.blade.php, line: 3 */ $foo + 10 | ||||||
/** file: foo.blade.php, line: 4 */); |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -7,8 +7,8 @@ | |||||||||
use PHPStan\Rules\Operators\InvalidBinaryOperationRule; | ||||||||||
use PHPStan\Rules\Rule; | ||||||||||
use PHPStan\Testing\RuleTestCase; | ||||||||||
use Reveal\TemplatePHPStanCompiler\PHPStan\FileAnalyserProvider; | ||||||||||
use Reveal\TemplatePHPStanCompiler\TypeAnalyzer\TemplateVariableTypesResolver; | ||||||||||
use Symplify\TemplatePHPStanCompiler\PHPStan\FileAnalyserProvider; | ||||||||||
use Symplify\TemplatePHPStanCompiler\TypeAnalyzer\TemplateVariableTypesResolver; | ||||||||||
use Vural\PHPStanBladeRule\Compiler\BladeToPHPCompiler; | ||||||||||
use Vural\PHPStanBladeRule\ErrorReporting\Blade\TemplateErrorsFactory; | ||||||||||
Comment on lines
+10
to
13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
use Vural\PHPStanBladeRule\NodeAnalyzer\BladeViewMethodsMatcher; | ||||||||||
|
@@ -29,12 +29,7 @@ protected function getRule(): Rule | |||||||||
[self::getContainer()->getByType(InvalidBinaryOperationRule::class)], | ||||||||||
self::getContainer()->getByType(BladeViewMethodsMatcher::class), | ||||||||||
self::getContainer()->getByType(LaravelViewFunctionMatcher::class), | ||||||||||
new ViewRuleHelper( | ||||||||||
self::getContainer()->getByType(TemplateVariableTypesResolver::class), | ||||||||||
self::getContainer()->getByType(FileAnalyserProvider::class), | ||||||||||
self::getContainer()->getByType(TemplateErrorsFactory::class), | ||||||||||
self::getContainer()->getByType(BladeToPHPCompiler::class), | ||||||||||
) | ||||||||||
self::getContainer()->getByType(ViewRuleHelper::class), | ||||||||||
); | ||||||||||
} | ||||||||||
|
||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -9,8 +9,8 @@ | |||||||||
use PHPStan\Rules\Rule; | ||||||||||
use PHPStan\Rules\Variables\DefinedVariableRule; | ||||||||||
use PHPStan\Testing\RuleTestCase; | ||||||||||
use Reveal\TemplatePHPStanCompiler\PHPStan\FileAnalyserProvider; | ||||||||||
use Reveal\TemplatePHPStanCompiler\TypeAnalyzer\TemplateVariableTypesResolver; | ||||||||||
use Symplify\TemplatePHPStanCompiler\PHPStan\FileAnalyserProvider; | ||||||||||
use Symplify\TemplatePHPStanCompiler\TypeAnalyzer\TemplateVariableTypesResolver; | ||||||||||
use Vural\PHPStanBladeRule\Compiler\BladeToPHPCompiler; | ||||||||||
use Vural\PHPStanBladeRule\ErrorReporting\Blade\TemplateErrorsFactory; | ||||||||||
Comment on lines
+12
to
15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
use Vural\PHPStanBladeRule\NodeAnalyzer\BladeViewMethodsMatcher; | ||||||||||
|
@@ -35,12 +35,7 @@ protected function getRule(): Rule | |||||||||
], | ||||||||||
self::getContainer()->getByType(BladeViewMethodsMatcher::class), | ||||||||||
self::getContainer()->getByType(LaravelViewFunctionMatcher::class), | ||||||||||
new ViewRuleHelper( | ||||||||||
self::getContainer()->getByType(TemplateVariableTypesResolver::class), | ||||||||||
self::getContainer()->getByType(FileAnalyserProvider::class), | ||||||||||
self::getContainer()->getByType(TemplateErrorsFactory::class), | ||||||||||
self::getContainer()->getByType(BladeToPHPCompiler::class), | ||||||||||
) | ||||||||||
self::getContainer()->getByType(ViewRuleHelper::class), | ||||||||||
); | ||||||||||
} | ||||||||||
|
||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
includes: | ||
- ../config/extension.neon | ||
- ../vendor/reveal/template-phpstan-compiler/config/services.neon | ||
- ../vendor/symplify/template-phpstan-compiler/config/services.neon | ||
- ../vendor/symplify/astral/config/services.neon | ||
parameters: | ||
checkExplicitMixed: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.