phpstan
No long description provided.
Installation
dagger install github.com/dagger-php/phpstan@25622f66d78caff17fbd648aa7fcf3f15cecda85
Entrypoint
Return Type
Phpstan
Example
dagger -m github.com/dagger-php/phpstan@25622f66d78caff17fbd648aa7fcf3f15cecda85 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
memoryLimit() 🔗
memoryLimit
Return Type
Phpstan !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
limit | String ! | - | No description provided |
Example
dagger -m github.com/dagger-php/phpstan@25622f66d78caff17fbd648aa7fcf3f15cecda85 call \
memory-limit --limit string
func (m *myModule) example(limit string) *Phpstan {
return dag.
Phpstan().
MemoryLimit(limit)
}
@function
def example(limit: str) -> dag.Phpstan:
return (
dag.phpstan()
.memory_limit(limit)
)
@func()
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
dagger -m github.com/dagger-php/phpstan@25622f66d78caff17fbd648aa7fcf3f15cecda85 call \
level --level string
func (m *myModule) example(level string) *Phpstan {
return dag.
Phpstan().
Level(level)
}
@function
def example(level: str) -> dag.Phpstan:
return (
dag.phpstan()
.level(level)
)
@func()
example(level: string): Phpstan {
return dag
.phpstan()
.level(level)
}
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@25622f66d78caff17fbd648aa7fcf3f15cecda85 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)
}