Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Illuminate/Auth/Access/HandlesAuthorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ protected function deny($message = null, $code = null)
* Deny with a HTTP status code.
*
* @param int $status
* @param ?string $message
* @param ?int $code
* @param string|null $message
* @param int|null $code
* @return \Illuminate\Auth\Access\Response
*/
public function denyWithStatus($status, $message = null, $code = null)
Expand All @@ -44,8 +44,8 @@ public function denyWithStatus($status, $message = null, $code = null)
/**
* Deny with a 404 HTTP status code.
*
* @param ?string $message
* @param ?int $code
* @param string|null $message
* @param int|null $code
* @return \Illuminate\Auth\Access\Response
*/
public function denyAsNotFound($message = null, $code = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class RedisBroadcaster extends Broadcaster
/**
* The Redis connection to use for broadcasting.
*
* @var ?string
* @var string|null
*/
protected $connection = null;

Expand Down
14 changes: 7 additions & 7 deletions src/Illuminate/Foundation/Console/DocsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ protected function page()
/**
* Determine the page to open.
*
* @return ?string
* @return string|null
*/
protected function resolvePage()
{
Expand All @@ -216,7 +216,7 @@ protected function didNotRequestPage()
/**
* Ask the user which page they would like to open.
*
* @return ?string
* @return string|null
*/
protected function askForPage()
{
Expand All @@ -226,7 +226,7 @@ protected function askForPage()
/**
* Ask the user which page they would like to open via a custom strategy.
*
* @return ?string
* @return string|null
*/
protected function askForPageViaCustomStrategy()
{
Expand All @@ -246,7 +246,7 @@ protected function askForPageViaCustomStrategy()
/**
* Ask the user which page they would like to open using autocomplete.
*
* @return ?string
* @return string|null
*/
protected function askForPageViaAutocomplete()
{
Expand All @@ -267,7 +267,7 @@ protected function askForPageViaAutocomplete()
/**
* Guess the page the user is attempting to open.
*
* @return ?string
* @return string|null
*/
protected function guessPage()
{
Expand All @@ -293,7 +293,7 @@ protected function guessPage()
* The section the user specifically asked to open.
*
* @param string $page
* @return ?string
* @return string|null
*/
protected function section($page)
{
Expand All @@ -316,7 +316,7 @@ protected function didNotRequestSection()
* Guess the section the user is attempting to open.
*
* @param string $page
* @return ?string
* @return string|null
*/
protected function guessSection($page)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function cspNonce()
/**
* Generate or set a Content Security Policy nonce to apply to all generated tags.
*
* @param ?string $nonce
* @param string|null $nonce
* @return string
*/
public function useCspNonce($nonce = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ function event(...$args)
/**
* Get a faker instance.
*
* @param ?string $locale
* @param string|null $locale
* @return \Faker\Generator
*/
function fake($locale = null)
Expand Down
5 changes: 3 additions & 2 deletions src/Illuminate/Support/Lottery.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class Lottery
* Create a new Lottery instance.
*
* @param int|float $chances
* @param ?int $outOf
* @param int|null $outOf
* @return void
*/
public function __construct($chances, $outOf = null)
{
Expand All @@ -62,7 +63,7 @@ public function __construct($chances, $outOf = null)
* Create a new Lottery instance.
*
* @param int|float $chances
* @param ?int $outOf
* @param int|null $outOf
* @return static
*/
public static function odds($chances, $outOf = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Validation/InvokableValidationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function setValidator($validator)
* Create a pending potentially translated string.
*
* @param string $attribute
* @param ?string $message
* @param string|null $message
* @return \Illuminate\Translation\PotentiallyTranslatedString
*/
protected function pendingPotentiallyTranslatedString($attribute, $message)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/View/Compilers/Concerns/CompilesHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function compileMethod($method)
/**
* Compile the "vite" statements into valid PHP.
*
* @param ?string $arguments
* @param string|null $arguments
* @return string
*/
protected function compileVite($arguments)
Expand Down
2 changes: 1 addition & 1 deletion tests/Foundation/FoundationDocsCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class FoundationDocsCommandTest extends TestCase
/**
* The URL opened by the command.
*
* @var ?string
* @var string|null
*/
protected $openedUrl;

Expand Down