Skip to content

Commit

Permalink
fix implicitly marking as nullable (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-jovanovic-php authored Jan 15, 2025
1 parent b2c42b7 commit 3700a58
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/Gaufrette/Adapter/AzureBlobStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ public function setCreateContainerOptions(CreateContainerOptions $options)
/**
* Creates a new container.
*
* @param string $containerName
* @param \MicrosoftAzure\Storage\Blob\Models\CreateContainerOptions $options
* @param string $containerName
* @param \MicrosoftAzure\Storage\Blob\Models\CreateContainerOptions|null $options
*
* @throws \RuntimeException if cannot create the container
*/
public function createContainer($containerName, CreateContainerOptions $options = null)
public function createContainer($containerName, ?CreateContainerOptions $options = null)
{
$this->init();

Expand All @@ -129,12 +129,12 @@ public function createContainer($containerName, CreateContainerOptions $options
/**
* Deletes a container.
*
* @param string $containerName
* @param BlobServiceOptions $options
* @param string $containerName
* @param BlobServiceOptions|null $options
*
* @throws \RuntimeException if cannot delete the container
*/
public function deleteContainer($containerName, BlobServiceOptions $options = null)
public function deleteContainer($containerName, ?BlobServiceOptions $options = null)
{
$this->init();

Expand Down
2 changes: 1 addition & 1 deletion src/Gaufrette/Exception/FileAlreadyExists.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FileAlreadyExists extends \RuntimeException implements Exception
{
private $key;

public function __construct($key, $code = 0, \Exception $previous = null)
public function __construct($key, $code = 0, ?\Exception $previous = null)
{
$this->key = $key;

Expand Down
2 changes: 1 addition & 1 deletion src/Gaufrette/Exception/FileNotFound.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FileNotFound extends \RuntimeException implements Exception
{
private $key;

public function __construct($key, $code = 0, \Exception $previous = null)
public function __construct($key, $code = 0, ?\Exception $previous = null)
{
$this->key = $key;

Expand Down
2 changes: 1 addition & 1 deletion src/Gaufrette/Exception/UnexpectedFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class UnexpectedFile extends \RuntimeException implements Exception
{
private $key;

public function __construct($key, $code = 0, \Exception $previous = null)
public function __construct($key, $code = 0, ?\Exception $previous = null)
{
$this->key = $key;

Expand Down

0 comments on commit 3700a58

Please sign in to comment.