Skip to content

Commit

Permalink
🚨 Apply PHP CS Fixer fixes (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelien authored Mar 2, 2024
1 parent a40b04c commit 7598e41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Plugin/CachePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class CachePlugin implements Plugin
*/
private $precision;

public function __construct(CacheInterface $cache, int $lifetime = null, int $precision = null)
public function __construct(CacheInterface $cache, ?int $lifetime = null, ?int $precision = null)
{
$this->cache = $cache;
$this->lifetime = $lifetime;
Expand Down
2 changes: 1 addition & 1 deletion Promise/GeocoderFulfilledPromise.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(Collection $collection)
$this->collection = $collection;
}

public function then(callable $onFulfilled = null, callable $onRejected = null): Promise
public function then(?callable $onFulfilled = null, ?callable $onRejected = null): Promise
{
if (null === $onFulfilled) {
return $this;
Expand Down
2 changes: 1 addition & 1 deletion Promise/GeocoderRejectedPromise.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(Exception $exception)
$this->exception = $exception;
}

public function then(callable $onFulfilled = null, callable $onRejected = null): Promise
public function then(?callable $onFulfilled = null, ?callable $onRejected = null): Promise
{
if (null === $onRejected) {
return $this;
Expand Down

0 comments on commit 7598e41

Please sign in to comment.