pub struct PhpstanConfig {
pub enabled: bool,
pub bin_path: String,
pub config_path: Option<String>,
}Expand description
PHPStan integration. Off by default: running a project’s own PHPStan installation takes far longer than the built-in analyzer (seconds, not milliseconds) and requires a project-specific config, so it’s an explicit opt-in rather than something that fires for every workspace.
Fields§
§enabled: bool§bin_path: StringExecutable name or path. Defaults to phpstan resolved via $PATH;
set to e.g. vendor/bin/phpstan for a project-local install.
config_path: Option<String>Passed as -c <path> when set. Otherwise PHPStan uses its own
discovery (phpstan.neon / phpstan.neon.dist in the workspace root).
Trait Implementations§
Source§impl Clone for PhpstanConfig
impl Clone for PhpstanConfig
Source§impl Debug for PhpstanConfig
impl Debug for PhpstanConfig
Auto Trait Implementations§
impl Freeze for PhpstanConfig
impl RefUnwindSafe for PhpstanConfig
impl Send for PhpstanConfig
impl Sync for PhpstanConfig
impl Unpin for PhpstanConfig
impl UnsafeUnpin for PhpstanConfig
impl UnwindSafe for PhpstanConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more