Dagger
Search

phpstan

No long description provided.

Installation

dagger install github.com/dagger-php/phpstan@a89a63431ec5c7cd0d227ce7cff3b076c4093665

Entrypoint

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