Skip to content

Commit cea360d

Browse files
committed
Fix deprecation and CS
1 parent 7024d70 commit cea360d

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/DataCollector/GeocoderDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function reset()
4747
/**
4848
* @return void
4949
*/
50-
public function collect(Request $request, Response $response, \Throwable $exception = null)
50+
public function collect(Request $request, Response $response, ?\Throwable $exception = null)
5151
{
5252
if (!empty($this->data['queries'])) {
5353
// To avoid collection more that once.

src/DependencyInjection/BazingaGeocoderExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
use Symfony\Component\Config\FileLocator;
3131
use Symfony\Component\DependencyInjection\ContainerBuilder;
3232
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
33+
use Symfony\Component\DependencyInjection\Extension\Extension;
3334
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
3435
use Symfony\Component\DependencyInjection\Reference;
35-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
3636

3737
/**
3838
* @author William Durand <[email protected]>.

src/Plugin/FakeIpPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class FakeIpPlugin implements Plugin
3030
private ?string $replacement;
3131
private ?Generator $faker = null;
3232

33-
public function __construct(?string $needle, string $replacement = null, bool $useFaker = false)
33+
public function __construct(?string $needle, ?string $replacement = null, bool $useFaker = false)
3434
{
3535
$this->needle = $needle;
3636
$this->replacement = $replacement;

src/ProviderFactory/AbstractFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ abstract class AbstractFactory implements ProviderFactoryInterface
3232

3333
protected ?ClientInterface $httpClient;
3434

35-
public function __construct(ClientInterface $httpClient = null)
35+
public function __construct(?ClientInterface $httpClient = null)
3636
{
3737
$this->httpClient = $httpClient;
3838
}

src/Validator/Constraint/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Address extends Constraint
4949
/**
5050
* @param string[]|null $options
5151
*/
52-
public function __construct(array $options = null, string $message = null, array $groups = null, $payload = null)
52+
public function __construct(?array $options = null, ?string $message = null, ?array $groups = null, $payload = null)
5353
{
5454
parent::__construct($options, $groups, $payload);
5555

tests/Functional/Helper/CacheHelperV8.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function get(string $key, mixed $default = null): mixed
2323
{
2424
}
2525

26-
public function set(string $key, mixed $value, int|\DateInterval $ttl = null): bool
26+
public function set(string $key, mixed $value, int|\DateInterval|null $ttl = null): bool
2727
{
2828
return true;
2929
}
@@ -43,7 +43,7 @@ public function getMultiple(iterable $keys, mixed $default = null): iterable
4343
return [];
4444
}
4545

46-
public function setMultiple(iterable $values, int|\DateInterval $ttl = null): bool
46+
public function setMultiple(iterable $values, int|\DateInterval|null $ttl = null): bool
4747
{
4848
return true;
4949
}

0 commit comments

Comments
 (0)