/**
* @inheritDoc
*/
- public function whitelistPaths( array $paths ) {
+ public function whitelistPaths( array $paths ): Command {
$this->whitelistedPaths = array_merge( $this->whitelistedPaths, $paths );
return $this;
}
$splitCommand = explode( ' ', $command, 2 );
$this->logger->debug(
"firejail: Command {$splitCommand[0]} {params} has no restrictions",
- [ 'params' => isset( $splitCommand[1] ) ? $splitCommand[1] : '' ]
+ [ 'params' => $splitCommand[1] ?? '' ]
);
return parent::buildFinalCommand( $command );
}