phpstan
No long description provided.
Installation
dagger install github.com/dagger-php/phpstan@16c21645512d3ab53738184edd1af353523cdf68Entrypoint
Return Type
Phpstan Example
dagger -m github.com/dagger-php/phpstan@16c21645512d3ab53738184edd1af353523cdf68 call \
func (m *MyModule) Example() *dagger.Phpstan {
return dag.
Phpstan()
}@function
def example() -> dagger.Phpstan:
return (
dag.phpstan()
)@func()
example(): Phpstan {
return dag
.phpstan()
}Types
Phpstan 🔗
Run phpstan against your php codebase
analyze() 🔗
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
dagger -m github.com/dagger-php/phpstan@16c21645512d3ab53738184edd1af353523cdf68 call \
analyze --php-version string --source DIR_PATH --path-to-test stringfunc (m *MyModule) Example(phpVersion string, source *dagger.Directory, pathToTest string) *dagger.Container {
return dag.
Phpstan().
Analyze(phpVersion, source, pathToTest)
}@function
def example(php_version: str, source: dagger.Directory, path_to_test: str) -> dagger.Container:
return (
dag.phpstan()
.analyze(php_version, source, path_to_test)
)@func()
example(phpVersion: string, source: Directory, pathToTest: string): Container {
return dag
.phpstan()
.analyze(phpVersion, source, pathToTest)
}