FakeProcessResult

Illuminate\Process\FakeProcessResult

class src/Illuminate/Process/FakeProcessResult.php

__construct

v11.0.0 以前から

__construct(string $command = '', int $exitCode = 0, array|string $output = '', array|string $errorOutput = '')
@param string $command
@param int $exitCode
@param array|string $output
@param array|string $errorOutput
  1. v11.0.0 追加
    変更後
    __construct(string $command = '', int $exitCode = 0, array|string $output = '', array|string $errorOutput = '') [@param string $command, @param int $exitCode, @param array|string $output, @param array|string $errorOutput, @return void]
  2. v12.4.0 シグネチャ変更
    変更前
    __construct(string $command = '', int $exitCode = 0, array|string $output = '', array|string $errorOutput = '') [@param string $command, @param int $exitCode, @param array|string $output, @param array|string $errorOutput, @return void]
    変更後
    __construct(string $command = '', int $exitCode = 0, array|string $output = '', array|string $errorOutput = '') [@param string $command, @param int $exitCode, @param array|string $output, @param array|string $errorOutput]

command

v11.0.0 以前から

command()
@return string
  1. v11.0.0 追加
    変更後
    command() [@return string]

errorOutput

v11.0.0 以前から

errorOutput()
@return string
  1. v11.0.0 追加
    変更後
    errorOutput() [@return string]

exitCode

v11.0.0 以前から

exitCode()
@return int
  1. v11.0.0 追加
    変更後
    exitCode() [@return int]

failed

v11.0.0 以前から

failed()
@return bool
  1. v11.0.0 追加
    変更後
    failed() [@return bool]

output

v11.0.0 以前から

output()
@return string
  1. v11.0.0 追加
    変更後
    output() [@return string]

seeInErrorOutput

v11.0.0 以前から

seeInErrorOutput(string $output)
@param string $output
@return bool
  1. v11.0.0 追加
    変更後
    seeInErrorOutput(string $output) [@param string $output, @return bool]

seeInOutput

v11.0.0 以前から

seeInOutput(string $output)
@param string $output
@return bool
  1. v11.0.0 追加
    変更後
    seeInOutput(string $output) [@param string $output, @return bool]

successful

v11.0.0 以前から

successful()
@return bool
  1. v11.0.0 追加
    変更後
    successful() [@return bool]

throw

v11.0.0 以前から

throw(?callable $callback = null)
@param callable|null $callback
@return $this
  1. v11.0.0 追加
    変更後
    throw(callable $callback = null) [@param callable|null $callback, @return $this]
  2. v11.3.0 シグネチャ変更
    変更前
    throw(callable $callback = null) [@param callable|null $callback, @return $this]
    変更後
    throw(?callable $callback = null) [@param callable|null $callback, @return $this]

throwIf

v11.0.0 以前から

throwIf(bool $condition, ?callable $callback = null)
@param bool $condition
@param callable|null $callback
@return $this
  1. v11.0.0 追加
    変更後
    throwIf(bool $condition, callable $callback = null) [@param bool $condition, @param callable|null $callback, @return $this]
  2. v11.3.0 シグネチャ変更
    変更前
    throwIf(bool $condition, callable $callback = null) [@param bool $condition, @param callable|null $callback, @return $this]
    変更後
    throwIf(bool $condition, ?callable $callback = null) [@param bool $condition, @param callable|null $callback, @return $this]

withCommand

v11.0.0 以前から

withCommand(string $command)
@param string $command
@return self
  1. v11.0.0 追加
    変更後
    withCommand(string $command) [@param string $command, @return self]