File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php declare (strict_types = 1 );
2+
3+ namespace PHPStan \Rule \Nette ;
4+
5+ class PresenterInjectedPropertiesExtensionTest extends \PHPStan \Testing \LevelsTestCase
6+ {
7+
8+ public function dataTopics (): array
9+ {
10+ return [
11+ ['presenterInject ' ],
12+ ];
13+ }
14+
15+ public function getDataPath (): string
16+ {
17+ return __DIR__ . '/data ' ;
18+ }
19+
20+ public function getPhpStanExecutablePath (): string
21+ {
22+ return __DIR__ . '/../../../vendor/bin/phpstan ' ;
23+ }
24+
25+ public function getPhpStanConfigPath (): ?string
26+ {
27+ return __DIR__ . '/phpstan.neon ' ;
28+ }
29+
30+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ class Service
4+ {
5+
6+ }
7+
8+ class InjectPresenter
9+ {
10+ /** @var Service @inject */
11+ public Service $ service ;
12+ }
Original file line number Diff line number Diff line change 1+ parameters :
2+ checkUninitializedProperties : true
3+
4+ includes :
5+ - ../../../extension.neon
6+ - ../../../rules.neon
7+ - phar://phpstan.phar/conf/bleedingEdge.neon
You can’t perform that action at this time.
0 commit comments