phpstan
No long description provided.
Installation
dagger install github.com/dagger-php/phpstan@3017fbe6fbb1d351c00bf25114ca60f804668e18
Entrypoint
Return Type
Phpstan
Example
func (m *myModule) example() *Phpstan {
return dag.
Phpstan()
}
Types
Phpstan 🔗
Run phpstan against your php codebase
memoryLimit() 🔗
memoryLimit
Return Type
Phpstan !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
limit | String ! | - | No description provided |
Example
func (m *myModule) example(limit string) *Phpstan {
return dag.
Phpstan().
MemoryLimit(limit)
}
level() 🔗
level
Return Type
Phpstan !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
level | String ! | - | No description provided |
Example
func (m *myModule) example(level string) *Phpstan {
return dag.
Phpstan().
Level(level)
}
analyse() 🔗
phpstan
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
phpVersion | String ! | - | No description provided |
source | Directory ! | - | No description provided |
pathToTest | String ! | - | No description provided |
Example
func (m *myModule) example(phpVersion string, source *Directory, pathToTest string) *Container {
return dag.
Phpstan().
Analyse(phpVersion, source, pathToTest)
}