mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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
This commit is contained in:
parent
2b77e5bc6b
commit
ec394cc26a
1 changed files with 8 additions and 8 deletions
|
@ -630,15 +630,15 @@ class PharCommand extends CLICommand
|
|||
* This function will take a directory and iterate through
|
||||
* it and get the files to insert into the Phar archive.
|
||||
*
|
||||
* @param Phar $phar The phar object.
|
||||
* @param string $input The input directory
|
||||
* @param string $regex The regex used in RegexIterator.
|
||||
* @param string $invregex The InvertedRegexIterator expression.
|
||||
* @param SplFileInfo $stub Stub file object
|
||||
* @param mixed $compress Compression algorithm or NULL
|
||||
* @param boolean $noloader Whether to prevent adding the loader
|
||||
* @param Phar $phar The phar object.
|
||||
* @param string $input The input directory
|
||||
* @param string $regex The regex used in RegexIterator.
|
||||
* @param string $invregex The InvertedRegexIterator expression.
|
||||
* @param ?SplFileInfo $stub Stub file object
|
||||
* @param mixed $compress Compression algorithm or NULL
|
||||
* @param boolean $noloader Whether to prevent adding the loader
|
||||
*/
|
||||
static function phar_add(Phar $phar, $level, $input, $regex, $invregex, SplFileInfo $stub = NULL, $compress = NULL, $noloader = false)
|
||||
static function phar_add(Phar $phar, $level, $input, $regex, $invregex, ?SplFileInfo $stub, $compress = NULL, $noloader = false)
|
||||
{
|
||||
if ($input && is_file($input) && !is_dir($input)) {
|
||||
return self::phar_add_file($phar, $level, $input, $input, $compress);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue