Skip to content

Commit 3cf113f

Browse files
committedSep 5, 2024··
Fix stubs
1 parent 14eec8c commit 3cf113f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

Diff for: ‎stubs/Symfony/Component/EventDispatcher/EventDispatcherInterface.stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ interface EventDispatcherInterface
1010
*
1111
* @return TEvent
1212
*/
13-
public function dispatch(object $event, string $eventName = null): object;
13+
public function dispatch(object $event, ?string $eventName = null): object;
1414
}

Diff for: ‎stubs/Symfony/Component/HttpFoundation/Cookie.stub

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Cookie
2121
*
2222
* @throws \InvalidArgumentException
2323
*/
24-
public function __construct(string $name, string $value = null, $expire = 0, ?string $path = '/', string $domain = null, ?bool $secure = false, bool $httpOnly = true, bool $raw = false, string $sameSite = null);
24+
public function __construct(string $name, ?string $value = null, $expire = 0, ?string $path = '/', ?string $domain = null, ?bool $secure = false, bool $httpOnly = true, bool $raw = false, ?string $sameSite = null);
2525

2626
/**
2727
* @param string $name The name of the cookie
@@ -36,7 +36,7 @@ class Cookie
3636
*
3737
* @throws \InvalidArgumentException
3838
*/
39-
public function create(string $name, string $value = null, $expire = 0, ?string $path = '/', string $domain = null, ?bool $secure = false, bool $httpOnly = true, bool $raw = false, string $sameSite = null): self;
39+
public function create(string $name, ?string $value = null, $expire = 0, ?string $path = '/', ?string $domain = null, ?bool $secure = false, bool $httpOnly = true, bool $raw = false, ?string $sameSite = null): self;
4040

4141
/**
4242
* @return self::SAMESITE_*|null

Diff for: ‎stubs/Symfony/Component/Serializer/Exception/ExtraAttributesException.stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class ExtraAttributesException extends RuntimeException
77
/**
88
* @param string[] $extraAttributes
99
*/
10-
public function __construct(array $extraAttributes, \Throwable $previous = null)
10+
public function __construct(array $extraAttributes, ?\Throwable $previous = null)
1111
{
1212
}
1313

Diff for: ‎stubs/Symfony/Contracts/Cache/CacheInterface.stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ interface CacheInterface
1515
*
1616
* @throws InvalidArgumentException
1717
*/
18-
public function get(string $key, callable $callback, float $beta = null, array &$metadata = null);
18+
public function get(string $key, callable $callback, ?float $beta = null, ?array &$metadata = null);
1919
}

0 commit comments

Comments
 (0)
Please sign in to comment.