phpstan
No long description provided.
Installation
dagger install github.com/dagger-php/phpstan@5726c31581d792fc8a017190cc126251cbbb660cEntrypoint
Return Type
Phpstan Example
dagger -m github.com/dagger-php/phpstan@5726c31581d792fc8a017190cc126251cbbb660c 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 |
| options | Options | null | No description provided |
Example
echo 'Custom types are not supported in shell examples'func (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)
}makeOptions() 🔗
Return Type
Options ! Example
dagger -m github.com/dagger-php/phpstan@5726c31581d792fc8a017190cc126251cbbb660c call \
make-optionsfunc (m *MyModule) Example() *dagger.PhpstanOptions {
return dag.
Phpstan().
MakeOptions()
}@function
def example() -> dagger.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@5726c31581d792fc8a017190cc126251cbbb660c call \
make-options \
memory-limit --limit stringfunc (m *MyModule) Example(limit string) *dagger.PhpstanOptions {
return dag.
Phpstan().
MakeOptions().
MemoryLimit(limit)
}@function
def example(limit: str) -> dagger.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@5726c31581d792fc8a017190cc126251cbbb660c call \
make-options \
level --level stringfunc (m *MyModule) Example(level string) *dagger.PhpstanOptions {
return dag.
Phpstan().
MakeOptions().
Level(level)
}@function
def example(level: str) -> dagger.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@5726c31581d792fc8a017190cc126251cbbb660c call \
make-options \
no-progress --progress booleanfunc (m *MyModule) Example(progress bool) *dagger.PhpstanOptions {
return dag.
Phpstan().
MakeOptions().
NoProgress(progress)
}@function
def example(progress: bool) -> dagger.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@5726c31581d792fc8a017190cc126251cbbb660c call \
make-options \
debug --debug stringfunc (m *MyModule) Example(debug string) *dagger.PhpstanOptions {
return dag.
Phpstan().
MakeOptions().
Debug(debug)
}@function
def example(debug: str) -> dagger.PhpstanOptions:
return (
dag.phpstan()
.make_options()
.debug(debug)
)@func()
example(debug: string): PhpstanOptions {
return dag
.phpstan()
.makeOptions()
.debug(debug)
}