10000 🚨 Apply PHP CS Fixer fixes (#1219) · geocoder-php/plugin@7598e41 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7598e41

Browse files
authored
🚨 Apply PHP CS Fixer fixes (#1219)
1 parent a40b04c commit 7598e41

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎Plugin/CachePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CachePlugin implements Plugin
4242
*/
4343
private $precision;
4444

45-
public function __construct(CacheInterface $cache, int $lifetime = null, int $precision = null)
45+
public function __construct(CacheInterface $cache, ?int $lifetime = null, ?int $precision = null)
4646
{
4747
$this->cache = $cache;
4848
$this->lifetime = $lifetime;

‎Promise/GeocoderFulfilledPromise.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(Collection $collection)
3030
$this->collection = $collection;
3131
}
3232

33-
public function then(callable $onFulfilled = null, callable $onRejected = null): Promise
33+
public function then(?callable $onFulfilled = null, ?callable $onRejected = null): Promise
3434
{
3535
if (null === $onFulfilled) {
3636
return $this;

‎Promise/GeocoderRejectedPromise.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(Exception $exception)
2929
$this->exception = $exception;
3030
}
3131

32-
public function then(callable $onFulfilled = null, callable $onRejected = null): Promise
32+
public function then(?callable $onFulfilled = null, ?callable $onRejected = null): Promise
3333
{
3434
if (null === $onRejected) {
3535
return $this;

0 commit comments

Comments
 (0)
0