File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 2
2
<a href="https://github.com/yii2-extensions/phpstan" target="_blank">
3
3
<img src="https://www.yiiframework.com/image/yii_logo_light.svg" height="100px;">
4
4
</a>
5
- <h1 align="center">Extension for PHPStan. </h1>
5
+ <h1 align="center">Extension for PHPStan</h1>
6
6
</p >
7
7
8
8
<p align =" center " >
Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ This will work with basic type inference but won't have custom component types.
343
343
For projects with both web and console applications:
344
344
345
345
### Project Structure
346
- ```
346
+ ``` text
347
347
phpstan-web.neon # Web-specific configuration
348
348
phpstan-console.neon # Console-specific configuration
349
349
phpstan.neon # Base configuration
@@ -430,4 +430,4 @@ vendor/bin/phpstan analyse --generate-baseline
430
430
431
431
## Next Steps
432
432
433
- - 💡 See [ Usage Examples] ( examples.md ) for practical examples
433
+ - 💡 [ Usage Examples] ( examples.md )
Original file line number Diff line number Diff line change @@ -708,3 +708,8 @@ class ApiController extends \yii\web\Controller
708
708
This comprehensive examples guide shows how the ` Yii2 ` ` PHPStan ` extension provides precise type inference across all
709
709
major ` Yii2 ` patterns and use cases, making your code more maintainable and reducing runtime errors through static
710
710
analysis.
711
+
712
+ ## Next Steps
713
+
714
+ - 📚 [ Installation Guide] ( docs/installation.md )
715
+ - ⚙️ [ Configuration Guide] ( configuration.md )
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ Add the plugin configuration to your `composer.json`.
61
61
}
62
62
```
63
63
64
- With this setup, the extension will be automatically registered and you only need to configure the Yii2-specific settings.
64
+ With this setup, the extension will be automatically registered, and you only need to configure the Yii2-specific settings.
65
65
66
66
### Manual Extension Registration
67
67
@@ -111,7 +111,6 @@ return [
111
111
'components' => [
112
112
'db' => [
113
113
'class' => \yii\db\Connection::class,
114
- 'dsn' => 'sqlite::memory:',
115
114
],
116
115
'user' => [
117
116
'class' => \yii\web\User::class,
@@ -209,7 +208,7 @@ vendor/bin/phpstan analyse test-phpstan.php --level=5
209
208
210
209
## Bootstrap Configuration
211
210
212
- If your application requires custom bootstrap logic, create a bootstrap file:
211
+ If your application requires custom bootstrap logic, create a bootstrap file.
213
212
214
213
``` php
215
214
<?php
@@ -250,4 +249,5 @@ vendor/bin/phpstan --version
250
249
251
250
Once installation is complete:
252
251
253
- - 📖 Read the [ Configuration Guide] ( configuration.md ) for advanced settings
252
+ - ⚙️ [ Configuration Reference] ( docs/configuration.md )
253
+ - 💡 [ Usage Examples] ( docs/examples.md )
You can’t perform that action at this time.
0 commit comments