Skip to content

Commit 062db5d

Browse files
authored
Update factory.template because of PHP8.4 deprecation (#108)
Implicitly marking parameter $options as nullable is deprecated in PHP8.4, the explicit nullable type must be used instead Signed-off-by: gabro <gabriele.vecelli@brightanswer.ch>
1 parent a85934a commit 062db5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/factory.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class %factory_class% implements FactoryInterface
2626
* @param array<mixed>|string|null $name
2727
* @param array<mixed>|null $options
2828
*/
29-
public function __invoke(ContainerInterface $container, $name = null, array $options = null): %class%
29+
public function __invoke(ContainerInterface $container, $name = null, ?array $options = null): %class%
3030
{
3131
if (is_array($name) && $options === null) {
3232
$options = $name;

0 commit comments

Comments
 (0)