You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,17 @@ see the ['Files Changed' tab of the DEMO-PR](https://github.com/staabm/phpstan-d
26
26
27
27
To get the extension running you need to configure the `phpstan-dba`.
28
28
29
-
1.[Include](https://phpstan.org/config-reference#multiple-files) the [`dba.neon`](https://github.com/staabm/phpstan-dba/blob/main/config/dba.neon) from within your PHPStan configuration.
29
+
1. If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) proceed with step 2.
30
+
<details>
31
+
<summary>Manual installation</summary>
32
+
33
+
If you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:
34
+
35
+
```
36
+
includes:
37
+
- vendor/staabm/phpstan-dba/config/dba.neon
38
+
```
39
+
</details>
30
40
31
41
2. Additionally your `bootstrap` file needs to be [configured within your phpstan configuration](https://phpstan.org/config-reference#bootstrap), so it will be automatically included by PHPStan:
- support the [phpstan/extension-installer](https://github.com/phpstan/extension-installer)
145
154
- support [more mysql to PHPStan type mappings](https://github.com/staabm/phpstan-dba/blob/b868f40c80afcecd3de408df3801b5a24e220dd8/src/QueryReflection/MysqliQueryReflector.php#L111)
146
155
- cover more real world examples and fine tune the [QueryReflection classes](https://github.com/staabm/phpstan-dba/tree/main/src/QueryReflection)
0 commit comments