@@ -59,16 +59,21 @@ class AppendOp extends AbstractOperation {
5959 /**
6060 * Constructs an AppendOp.
6161 *
62- * @param \Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $prepend_path
63- * The relative path to the prepend file.
64- * @param \Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $append_path
65- * The relative path to the append file.
62+ * @param \Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath|null $prepend_path
63+ * (optional) The relative path to the prepend file.
64+ * @param \Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath|null $append_path
65+ * (optional) The relative path to the append file.
6666 * @param bool $force_append
67- * TRUE if is okay to append to a file that was not scaffolded.
68- * @param \Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $default_path
69- * The relative path to the default data.
67+ * (optional) TRUE if is okay to append to a file that was not scaffolded.
68+ * @param \Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath|null $default_path
69+ * (optional) The relative path to the default data.
7070 */
71- public function __construct (ScaffoldFilePath $ prepend_path = NULL , ScaffoldFilePath $ append_path = NULL , $ force_append = FALSE , ScaffoldFilePath $ default_path = NULL ) {
71+ public function __construct (
72+ ?ScaffoldFilePath $ prepend_path = NULL ,
73+ ?ScaffoldFilePath $ append_path = NULL ,
74+ $ force_append = FALSE ,
75+ ?ScaffoldFilePath $ default_path = NULL ,
76+ ) {
7277 $ this ->forceAppend = $ force_append ;
7378 $ this ->prepend = $ prepend_path ;
7479 $ this ->append = $ append_path ;
0 commit comments