Skip to content

Commit

Permalink
[BUGFIX] Fix deprecation warning in ContentBlockBuilder (#329)
Browse files Browse the repository at this point in the history
As of PHP 8.4 implicitly declaring function parameters nullable is deprecated.

Explicitly nullable types have been available since PHP 7.1

See: https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated
  • Loading branch information
tim-baecker authored Jan 8, 2025
1 parent d678124 commit cf6c87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Builder/ContentBlockBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct(
/**
* Writes a Content Block to file system.
*/
public function create(LoadedContentBlock $contentBlock, string $skeletonPath = null): void
public function create(LoadedContentBlock $contentBlock, ?string $skeletonPath = null): void
{
$name = $contentBlock->getPackage();
$extPath = $contentBlock->getExtPath();
Expand Down

0 comments on commit cf6c87c

Please sign in to comment.