Skip to content

Commit

Permalink
Merge pull request #290 from skilld-labs/v1.6
Browse files Browse the repository at this point in the history
Fix PHP 8.4 deprecate-implicitly-nullable-types
  • Loading branch information
jaapio authored Aug 23, 2024
2 parents 17d16a8 + 1ee7fa3 commit 796ae51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/php/org/bovigo/vfs/vfsStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public static function setup($rootDirName = 'root', $permissions = null, array $
* @see https://github.com/mikey179/vfsStream/issues/14
* @see https://github.com/mikey179/vfsStream/issues/20
*/
public static function create(array $structure, vfsStreamDirectory $baseDir = null)
public static function create(array $structure, ?vfsStreamDirectory $baseDir = null)

Check failure on line 211 in src/main/php/org/bovigo/vfs/vfsStream.php

View workflow job for this annotation

GitHub Actions / PHP 5.5 on ubuntu-latest

syntax error, unexpected '?', expecting '&' or variable (T_VARIABLE)

Check failure on line 211 in src/main/php/org/bovigo/vfs/vfsStream.php

View workflow job for this annotation

GitHub Actions / PHP 5.3 on ubuntu-latest

syntax error, unexpected '?', expecting '&' or T_VARIABLE

Check failure on line 211 in src/main/php/org/bovigo/vfs/vfsStream.php

View workflow job for this annotation

GitHub Actions / PHP 5.6 on ubuntu-latest

syntax error, unexpected '?', expecting variable (T_VARIABLE)

Check failure on line 211 in src/main/php/org/bovigo/vfs/vfsStream.php

View workflow job for this annotation

GitHub Actions / PHP 5.4 on ubuntu-latest

syntax error, unexpected '?', expecting '&' or variable (T_VARIABLE)

Check failure on line 211 in src/main/php/org/bovigo/vfs/vfsStream.php

View workflow job for this annotation

GitHub Actions / PHP 5.5 on windows-latest

syntax error, unexpected '?', expecting '&' or variable (T_VARIABLE)

Check failure on line 211 in src/main/php/org/bovigo/vfs/vfsStream.php

View workflow job for this annotation

GitHub Actions / PHP 5.6 on macOS-latest

syntax error

Check failure on line 211 in src/main/php/org/bovigo/vfs/vfsStream.php

View workflow job for this annotation

GitHub Actions / PHP 5.6 on windows-latest

syntax error, unexpected '?', expecting variable (T_VARIABLE)

Check failure on line 211 in src/main/php/org/bovigo/vfs/vfsStream.php

View workflow job for this annotation

GitHub Actions / PHP 5.4 on macOS-latest

syntax error, unexpected '?', expecting '&' or variable (T_VARIABLE)

Check failure on line 211 in src/main/php/org/bovigo/vfs/vfsStream.php

View workflow job for this annotation

GitHub Actions / PHP 5.5 on macOS-latest

syntax error, unexpected '?', expecting '&' or variable (T_VARIABLE)

Check failure on line 211 in src/main/php/org/bovigo/vfs/vfsStream.php

View workflow job for this annotation

GitHub Actions / PHP 5.3 on macOS-latest

syntax error, unexpected '?', expecting '&' or T_VARIABLE
{
if (null === $baseDir) {
$baseDir = vfsStreamWrapper::getRoot();
Expand Down Expand Up @@ -272,7 +272,7 @@ protected static function addStructure(array $structure, vfsStreamDirectory $bas
* @since 0.11.0
* @see https://github.com/mikey179/vfsStream/issues/4
*/
public static function copyFromFileSystem($path, vfsStreamDirectory $baseDir = null, $maxFileSize = 1048576)
public static function copyFromFileSystem($path, ?vfsStreamDirectory $baseDir = null, $maxFileSize = 1048576)
{
if (null === $baseDir) {
$baseDir = vfsStreamWrapper::getRoot();
Expand Down Expand Up @@ -421,7 +421,7 @@ public static function getCurrentGroup()
* @since 0.10.0
* @see https://github.com/mikey179/vfsStream/issues/10
*/
public static function inspect(vfsStreamVisitor $visitor, vfsStreamContent $content = null)
public static function inspect(vfsStreamVisitor $visitor, ?vfsStreamContent $content = null)
{
if (null !== $content) {
return $visitor->visit($content);
Expand Down

0 comments on commit 796ae51

Please sign in to comment.