File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function setMetaFrom(object $object): self;
2929 *
3030 * @param positive-int|null $maxLength
3131 */
32- public function setTitle (string $ title , int $ maxLength = null ): self ;
32+ public function setTitle (string $ title , ? int $ maxLength = null ): self ;
3333
3434 /**
3535 * Prepend title part to default title
Original file line number Diff line number Diff line change 77
88trait ManageTitle
99{
10- public function setTitle (?string $ title , int $ maxLength = null ): self
10+ public function setTitle (?string $ title , ? int $ maxLength = null ): self
1111 {
1212 $ this ->getTitle ()->setTitle ($ this ->cleanString ($ title ), $ maxLength );
1313
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public function register(PackageInterface $package): self
2323 return $ this ;
2424 }
2525
26- public function create (string $ name , Closure $ callback = null ): self
26+ public function create (string $ name , ? Closure $ callback = null ): self
2727 {
2828 $ this ->register ($ package = new Package ($ name ));
2929
You can’t perform that action at this time.
0 commit comments