Skip to content

Commit 2bd9077

Browse files
committed
Remove the custom bootstrap and add bootstrap notice to Readme
1 parent be66092 commit 2bd9077

File tree

4 files changed

+10
-60
lines changed

4 files changed

+10
-60
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ Put this into your phpstan.neon config:
99
includes:
1010
- vendor/saschaegerer/phpstan-typo3/extension.neon
1111
```
12+
13+
If you do use constants of TYPO3 core you may have to
14+
bootstrap TYPO3 first. This can be done by using the
15+
unit testing bootstrap of the testing-framework
16+
17+
```
18+
parameters:
19+
autoload_files:
20+
- %rootDir%/../../typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php
21+
```

extension.neon

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
parameters:
2-
bootstrap: %rootDir%/../../saschaegerer/phpstan-typo3/src/PhpstanTypo3Bootstrap.php
3-
41
services:
52
-
63
class: SaschaEgerer\PhpstanTypo3\Reflection\RepositoryMethodsClassReflectionExtension

phpstan.neon

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
includes:
22
- vendor/phpstan/phpstan-strict-rules/rules.neon
3-
parameters:
4-
excludes_analyse:
5-
- src/PhpstanTypo3Bootstrap.php

src/PhpstanTypo3Bootstrap.php

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)