File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ class AutoMapper implements AutoMapperInterface
3333 /**
3434 * AutoMapper constructor.
3535 *
36- * @param AutoMapperConfigInterface $autoMapperConfig
36+ * @param AutoMapperConfigInterface|null $autoMapperConfig
3737 */
38- public function __construct (AutoMapperConfigInterface $ autoMapperConfig = null )
38+ public function __construct (? AutoMapperConfigInterface $ autoMapperConfig = null )
3939 {
4040 $ this ->autoMapperConfig = $ autoMapperConfig ?: new AutoMapperConfig ();
4141 }
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ class AutoMapperConfig implements AutoMapperConfigInterface
2222 /**
2323 * AutoMapperConfig constructor.
2424 *
25- * @param callable $configurator
25+ * @param callable|null $configurator
2626 */
27- public function __construct (callable $ configurator = null )
27+ public function __construct (? callable $ configurator = null )
2828 {
2929 $ this ->options = Options::default ();
3030 if ($ configurator !== null ) {
You can’t perform that action at this time.
0 commit comments