Dagger
Search

phpstan

No long description provided.

Installation

dagger install github.com/dagger-php/phpstan@400955d078fc49f8bf9be97104f9775b694519ae

Entrypoint

Return Type
Phpstan
Example
dagger -m github.com/dagger-php/phpstan@400955d078fc49f8bf9be97104f9775b694519ae 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
NameTypeDefault ValueDescription
limitString !-No description provided
Example
dagger -m github.com/dagger-php/phpstan@400955d078fc49f8bf9be97104f9775b694519ae 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
NameTypeDefault ValueDescription
levelString !-No description provided
Example
dagger -m github.com/dagger-php/phpstan@400955d078fc49f8bf9be97104f9775b694519ae 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
NameTypeDefault ValueDescription
phpVersionString !-No description provided
sourceDirectory !-No description provided
pathToTestString !-No description provided
Example
dagger -m github.com/dagger-php/phpstan@400955d078fc49f8bf9be97104f9775b694519ae 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)
}