Skip to content
docsv0.8.0

PluginInstallException

Thrown when installing or updating a plugin from a remote source (e.g. GitHub) fails — download failure, manifest error, or an unresolvable release.

PluginInstallException::forSource()

public static function forSource(string $source, string $reason): self

Builds the exception for a plugin that failed to install from a source.

Parameters

Parameters of forSource()
NameTypeDescription
$sourcestringRemote source the plugin was installed from (e.g. "owner/repo", "owner/repo:^2.0", or a GitHub URL)
$reasonstringHuman-readable reason for the failure