Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples/04-adding-your-own-tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function __construct(?Description $description = null)
* @see Tag for the interface declaration of the `create` method.
* @see Tag::create() for more information on this method's workings.
*/
public static function create(string $body, DescriptionFactory $descriptionFactory = null, Context $context = null): self
public static function create(string $body, ?DescriptionFactory $descriptionFactory = null, ?Context $context = null): self
{
Assert::notNull($descriptionFactory);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Assets/CustomParam.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function getName() : string
return 'spy';
}

public static function create(string $body, FqsenResolver $fqsenResolver = null, ?string $myParam = null)
public static function create(string $body, ?FqsenResolver $fqsenResolver = null, ?string $myParam = null)
{
$tag = new self();
$tag->fqsenResolver = $fqsenResolver;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Assets/CustomServiceClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function getName() : string
return 'spy';
}

public static function create(string $body, PassthroughFormatter $formatter = null)
public static function create(string $body, ?PassthroughFormatter $formatter = null)
{
$tag = new self();
$tag->formatter = $formatter;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Assets/CustomServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function getName() : string
return 'spy';
}

public static function create(string $body, Formatter $formatter = null)
public static function create(string $body, ?Formatter $formatter = null)
{
$tag = new self();
$tag->formatter = $formatter;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Assets/CustomTagFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CustomTagFactory implements Factory
/** @var CustomServiceClass|null */
public $class;

public function create(string $tagLine, ?Context $context = null, CustomServiceClass $class = null): Tag
public function create(string $tagLine, ?Context $context = null, ?CustomServiceClass $class = null): Tag
{
$this->class = $class;

Expand Down
Loading