phpstan
No long description provided.
Installation
dagger install github.com/dagger-php/phpstan@3bf30743927da478505b2fb19343f96c98dc0206
Entrypoint
Return Type
Phpstan
Example
dagger -m github.com/dagger-php/phpstan@3bf30743927da478505b2fb19343f96c98dc0206 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 |
options | Options | null | No description provided |
Example
echo 'Custom types are not supported in shell examples'
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)
}
makeOptions() 🔗
Return Type
Options !
Example
dagger -m github.com/dagger-php/phpstan@3bf30743927da478505b2fb19343f96c98dc0206 call \
make-options
func (m *myModule) example() *PhpstanOptions {
return dag.
Phpstan().
MakeOptions()
}
@function
def example() -> dag.PhpstanOptions:
return (
dag.phpstan()
.make_options()
)
@func()
example(): PhpstanOptions {
return dag
.phpstan()
.makeOptions()
}
Options 🔗
memoryLimit() 🔗
Return Type
Options !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
limit | String ! | - | No description provided |
Example
dagger -m github.com/dagger-php/phpstan@3bf30743927da478505b2fb19343f96c98dc0206 call \
make-options \
memory-limit --limit string
func (m *myModule) example(limit string) *PhpstanOptions {
return dag.
Phpstan().
MakeOptions().
MemoryLimit(limit)
}
@function
def example(limit: str) -> dag.PhpstanOptions:
return (
dag.phpstan()
.make_options()
.memory_limit(limit)
)
@func()
example(limit: string): PhpstanOptions {
return dag
.phpstan()
.makeOptions()
.memoryLimit(limit)
}
level() 🔗
Return Type
Options !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
level | String ! | - | No description provided |
Example
dagger -m github.com/dagger-php/phpstan@3bf30743927da478505b2fb19343f96c98dc0206 call \
make-options \
level --level string
func (m *myModule) example(level string) *PhpstanOptions {
return dag.
Phpstan().
MakeOptions().
Level(level)
}
@function
def example(level: str) -> dag.PhpstanOptions:
return (
dag.phpstan()
.make_options()
.level(level)
)
@func()
example(level: string): PhpstanOptions {
return dag
.phpstan()
.makeOptions()
.level(level)
}
noProgress() 🔗
Return Type
Options !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
progress | Boolean ! | - | No description provided |
Example
dagger -m github.com/dagger-php/phpstan@3bf30743927da478505b2fb19343f96c98dc0206 call \
make-options \
no-progress --progress boolean
func (m *myModule) example(progress bool) *PhpstanOptions {
return dag.
Phpstan().
MakeOptions().
NoProgress(progress)
}
@function
def example(progress: bool) -> dag.PhpstanOptions:
return (
dag.phpstan()
.make_options()
.no_progress(progress)
)
@func()
example(progress: boolean): PhpstanOptions {
return dag
.phpstan()
.makeOptions()
.noProgress(progress)
}
debug() 🔗
Return Type
Options !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
debug | String ! | - | No description provided |
Example
dagger -m github.com/dagger-php/phpstan@3bf30743927da478505b2fb19343f96c98dc0206 call \
make-options \
debug --debug string
func (m *myModule) example(debug string) *PhpstanOptions {
return dag.
Phpstan().
MakeOptions().
Debug(debug)
}
@function
def example(debug: str) -> dag.PhpstanOptions:
return (
dag.phpstan()
.make_options()
.debug(debug)
)
@func()
example(debug: string): PhpstanOptions {
return dag
.phpstan()
.makeOptions()
.debug(debug)
}