phpstan
No long description provided.
Installation
dagger install github.com/dragoonis/dagger-phpstan@f43c6ae678aacbddcc8dfd006b0b5311d69b578e
Entrypoint
Return Type
Phpstan
Example
dagger -m github.com/dragoonis/dagger-phpstan@f43c6ae678aacbddcc8dfd006b0b5311d69b578e call \
func (m *myModule) example() *Phpstan {
return dag.
Phpstan()
}
@function
def example() -> dag.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/dragoonis/dagger-phpstan@f43c6ae678aacbddcc8dfd006b0b5311d69b578e call \
analyze --php-version string --source DIR_PATH --path-to-test string
func (m *myModule) example(phpVersion string, source *Directory, pathToTest string) *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)
}