Skip to content

Commit ec394cc

Browse files
authored
Fix implicitly marking parameter as nullable deprecation warning (#13714)
A follow up around the php-src code regarding the RFC: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
1 parent 2b77e5b commit ec394cc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ext/phar/phar/pharcommand.inc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -630,15 +630,15 @@ class PharCommand extends CLICommand
630630
* This function will take a directory and iterate through
631631
* it and get the files to insert into the Phar archive.
632632
*
633-
* @param Phar $phar The phar object.
634-
* @param string $input The input directory
635-
* @param string $regex The regex used in RegexIterator.
636-
* @param string $invregex The InvertedRegexIterator expression.
637-
* @param SplFileInfo $stub Stub file object
638-
* @param mixed $compress Compression algorithm or NULL
639-
* @param boolean $noloader Whether to prevent adding the loader
640-
*/
641-
static function phar_add(Phar $phar, $level, $input, $regex, $invregex, SplFileInfo $stub = NULL, $compress = NULL, $noloader = false)
633+
* @param Phar $phar The phar object.
634+
* @param string $input The input directory
635+
* @param string $regex The regex used in RegexIterator.
636+
* @param string $invregex The InvertedRegexIterator expression.
637+
* @param ?SplFileInfo $stub Stub file object
638+
* @param mixed $compress Compression algorithm or NULL
639+
* @param boolean $noloader Whether to prevent adding the loader
640+
*/
641+
static function phar_add(Phar $phar, $level, $input, $regex, $invregex, ?SplFileInfo $stub, $compress = NULL, $noloader = false)
642642
{
643643
if ($input && is_file($input) && !is_dir($input)) {
644644
return self::phar_add_file($phar, $level, $input, $input, $compress);

0 commit comments

Comments
 (0)