Skip to content

Commit

Permalink
[5.6] added missed null PhpDoc (#23829)
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlindaruk authored and taylorotwell committed Apr 7, 2018
1 parent efe4f1a commit b4b89ad
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Access/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function define($ability, $callback)
*
* @param string $name
* @param string $class
* @param array $abilities
* @param array|null $abilities
* @return $this
*/
public function resource($name, $class, array $abilities = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Passwords/PasswordBrokerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct($app)
/**
* Attempt to get the broker from the local cache.
*
* @param string $name
* @param string|null $name
* @return \Illuminate\Contracts\Auth\PasswordBroker
*/
public function broker($name = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Broadcasting/BroadcastManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function connection($driver = null)
/**
* Get a driver instance.
*
* @param string $name
* @param string|null $name
* @return mixed
*/
public function driver($name = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RedisBroadcaster extends Broadcaster
* Create a new broadcaster instance.
*
* @param \Illuminate\Contracts\Redis\Factory $redis
* @param string $connection
* @param string|null $connection
* @return void
*/
public function __construct(Redis $redis, $connection = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function store($name = null)
/**
* Get a cache driver instance.
*
* @param string $driver
* @param string|null $driver
* @return mixed
*/
public function driver($driver = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/RedisTaggedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RedisTaggedCache extends TaggedCache
*
* @param string $key
* @param mixed $value
* @param \DateTime|float|int $minutes
* @param \DateTime|float|int|null $minutes
* @return void
*/
public function put($key, $value, $minutes = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function pull($key, $default = null)
*
* @param string $key
* @param mixed $value
* @param \DateTimeInterface|\DateInterval|float|int $minutes
* @param \DateTimeInterface|\DateInterval|float|int|null $minutes
* @return void
*/
public function put($key, $value, $minutes = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public static function forgetBootstrappers()
*
* @param string $command
* @param array $parameters
* @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
* @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
* @return int
*/
public function call($command, array $parameters = [], $outputBuffer = null)
Expand Down
16 changes: 8 additions & 8 deletions src/Illuminate/Console/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function hasOption($name)
/**
* Get the value of a command option.
*
* @param string $key
* @param string|null $key
* @return string|array
*/
public function option($key = null)
Expand Down Expand Up @@ -318,7 +318,7 @@ public function confirm($question, $default = false)
* Prompt the user for input.
*
* @param string $question
* @param string $default
* @param string|null $default
* @return string
*/
public function ask($question, $default = null)
Expand All @@ -331,7 +331,7 @@ public function ask($question, $default = null)
*
* @param string $question
* @param array $choices
* @param string $default
* @param string|null $default
* @return string
*/
public function anticipate($question, array $choices, $default = null)
Expand All @@ -344,7 +344,7 @@ public function anticipate($question, array $choices, $default = null)
*
* @param string $question
* @param array $choices
* @param string $default
* @param string|null $default
* @return string
*/
public function askWithCompletion($question, array $choices, $default = null)
Expand Down Expand Up @@ -377,9 +377,9 @@ public function secret($question, $fallback = true)
*
* @param string $question
* @param array $choices
* @param string $default
* @param mixed $attempts
* @param bool $multiple
* @param string|null $default
* @param mixed|null $attempts
* @param bool|null $multiple
* @return string
*/
public function choice($question, array $choices, $default = null, $attempts = null, $multiple = null)
Expand Down Expand Up @@ -527,7 +527,7 @@ protected function setVerbosity($level)
/**
* Get the verbosity level in terms of Symfony's OutputInterface level.
*
* @param string|int $level
* @param string|int|null $level
* @return int
*/
protected function parseVerbosity($level = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Contracts/Broadcasting/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Factory
/**
* Get a broadcaster implementation by name.
*
* @param string $name
* @param string|null $name
* @return void
*/
public function connection($name = null);
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Contracts/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Application
*
* @param string $command
* @param array $parameters
* @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
* @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
* @return int
*/
public function call($command, array $parameters = [], $outputBuffer = null);
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Contracts/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface Kernel
* Handle an incoming console command.
*
* @param \Symfony\Component\Console\Input\InputInterface $input
* @param \Symfony\Component\Console\Output\OutputInterface $output
* @param \Symfony\Component\Console\Output\OutputInterface|null $output
* @return int
*/
public function handle($input, $output = null);
Expand All @@ -18,7 +18,7 @@ public function handle($input, $output = null);
*
* @param string $command
* @param array $parameters
* @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
* @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
* @return int
*/
public function call($command, array $parameters = [], $outputBuffer = null);
Expand Down

0 comments on commit b4b89ad

Please sign in to comment.