@@ -67,10 +67,10 @@ public static function load($values, $parser = null, $string = false)
6767 * Loads a Config instance.
6868 *
6969 * @param string|array $values Filenames or string with configuration
70- * @param ParserInterface $parser Configuration parser
70+ * @param ? ParserInterface $parser Configuration parser
7171 * @param bool $string Enable loading from string
7272 */
73- public function __construct ($ values , ParserInterface $ parser = null , $ string = false )
73+ public function __construct ($ values , ? ParserInterface $ parser = null , $ string = false )
7474 {
7575 if ($ string === true ) {
7676 $ this ->loadFromString ($ values , $ parser );
@@ -85,11 +85,11 @@ public function __construct($values, ParserInterface $parser = null, $string = f
8585 * Loads configuration from file.
8686 *
8787 * @param string|array $path Filenames or directories with configuration
88- * @param ParserInterface $parser Configuration parser
88+ * @param ? ParserInterface $parser Configuration parser
8989 *
9090 * @throws EmptyDirectoryException If `$path` is an empty directory
9191 */
92- protected function loadFromFile ($ path , ParserInterface $ parser = null )
92+ protected function loadFromFile ($ path , ? ParserInterface $ parser = null )
9393 {
9494 $ paths = $ this ->getValidPath ($ path );
9595 $ this ->data = [];
@@ -125,11 +125,11 @@ protected function loadFromFile($path, ParserInterface $parser = null)
125125 * Writes configuration to file.
126126 *
127127 * @param string $filename Filename to save configuration to
128- * @param WriterInterface $writer Configuration writer
128+ * @param ? WriterInterface $writer Configuration writer
129129 *
130130 * @throws WriteException if the data could not be written to the file
131131 */
132- public function toFile ($ filename , WriterInterface $ writer = null )
132+ public function toFile ($ filename , ? WriterInterface $ writer = null )
133133 {
134134 if ($ writer === null ) {
135135 // Get file information
0 commit comments