Skip to content

Not yet compatible with PHP 8.5 #1577

@llaville

Description

@llaville

Bug report

Question Answer
Box version 4.6.10
PHP version 8.5.0
Platform with version Ubuntu/Docker/WSL2
Github Repo - https://github.com/llaville/box-manifest

While testing my project with Symfony components v8.0, I've discover that BOX 4.6.x is not yet ready with PHP 8.5 platform

box.json
{
   "main": "bin/box-manifest",
   "compression": "GZ",
   "blacklist": [
       "fixtures",
       "tests",
       "Test",
       "doc",
       "dist",
       "vendor-bin"
   ],
   "directories": [
       "bin",
       "src",
       "vendor"
   ],
   "directories-bin": [
       "vendor/humbug/box/res/requirement-checker"
   ],
   "files": [
       "autoload.php",
       "bootstrap.php"
   ],
   "files-bin": [
       "vendor/humbug/php-scoper/vendor-hotfix/.gitkeep"
   ],
   "dump-autoload": false
}
Output
box-manifest on git branch 4.x [!?>] via php v8.5.0
container  [Docker] x /shared/backups/phar/box.phar compile -c box.json -vvv

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Box Requirements Checker
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

========================
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
> Using PHP 8.5.0
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

> PHP is not using any php.ini file.
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
> Checking Box requirements:
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ This application requires a PHP version matching "^8.2".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "webmozart/assert" requires the extension "date".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "amphp/dns" requires the extension "filter".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "league/uri-interfaces" requires the extension "filter".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "phpdocumentor/reflection-docblock" requires the extension "filter".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "webmozart/assert" requires the extension "filter".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "amphp/dns" requires the extension "json".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "justinrainbow/json-schema" requires the extension "json".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "nikic/php-parser" requires the extension "json".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "amphp/socket" requires the extension "openssl".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "kelunik/certificate" requires the extension "openssl".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ This application requires the extension "phar".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "marc-mabe/php-enum" requires the extension "reflection".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "nikic/php-parser" requires the extension "tokenizer".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ This application requires the extension "zlib".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "symfony/service-contracts" conflicts with the extension "psr".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

[OK] Your system is ready to run the application.
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

[debug] Current memory limit: "512MB"
[debug] Checking BOX_ALLOW_XDEBUG
[debug] phar.readonly is enabled
[debug] The Xdebug extension is not loaded
[debug] Configured `phar.readonly=0`
[debug] Process restarting (BOX_ALLOW_XDEBUG=internal||1|/usr/local/etc/php/conf.d:/etc/php-custom.d|*)
[debug] Running: [/usr/local/bin/php, /shared/backups/phar/box.phar, compile, -c, box.json, -vvv]

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Box Requirements Checker
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

========================
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
> Using PHP 8.5.0
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
> PHP is using the following php.ini file:
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

 /tmp/8kjgeijrvb15buFyS1z
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
> Checking Box requirements:
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ This application requires a PHP version matching "^8.2".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "webmozart/assert" requires the extension "date".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "amphp/dns" requires the extension "filter".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "league/uri-interfaces" requires the extension "filter".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "phpdocumentor/reflection-docblock" requires the extension "filter".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "webmozart/assert" requires the extension "filter".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "amphp/dns" requires the extension "json".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "justinrainbow/json-schema" requires the extension "json".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "nikic/php-parser" requires the extension "json".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "amphp/socket" requires the extension "openssl".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "kelunik/certificate" requires the extension "openssl".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ This application requires the extension "phar".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "marc-mabe/php-enum" requires the extension "reflection".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "nikic/php-parser" requires the extension "tokenizer".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ This application requires the extension "zlib".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97
 ✔ The package "symfony/service-contracts" conflicts with the extension "psr".
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

[OK] Your system is ready to run the application.
Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97


Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///shared/backups/phar/box.phar/.box/src/Printer.php on line 97

[debug] Current memory limit: "512MB"
[debug] Checking BOX_ALLOW_XDEBUG
[debug] Restarted (144 ms). The Xdebug extension is not loaded

   ____
  / __ )____  _  __
 / __  / __ \| |/_/
/ /_/ / /_/ />  <
/_____/\____/_/|_|


Box version 4.6.10@6dc6a13 2025-10-31 18:40:22 UTC

// Loading the configuration file "box.json".

🔨  Building the PHAR "/shared/backups/bartlett/box-manifest/bin/box-manifest.phar"

? Skipping the Composer compatibility check: the autoloader is not dumped
? No compactor to register
? Adding main file: /shared/backups/bartlett/box-manifest/bin/box-manifest
? Adding requirements checker

In RequirementsBuilder.php line 29:

 [ErrorException]
 Using null as an array offset is deprecated, use an empty string instead


Exception trace:
 at phar:///shared/backups/phar/box.phar/src/RequirementChecker/RequirementsBuilder.php:29
_HumbugBox9fb2001568f0\KevinGH\Box\Bootstrap::{closure:_HumbugBox9fb2001568f0\KevinGH\Box\Bootstrap::registerErrorHandler():24}() at phar:///shared/backups/phar/box.phar/src/RequirementChecker/RequirementsBuilder.php:29
_HumbugBox9fb2001568f0\KevinGH\Box\RequirementChecker\RequirementsBuilder->addRequiredExtension() at phar:///shared/backups/phar/box.phar/src/RequirementChecker/AppRequirementsFactory.php:53
_HumbugBox9fb2001568f0\KevinGH\Box\RequirementChecker\AppRequirementsFactory::collectExtensionRequirementsFromCompressionAlgorithm() at phar:///shared/backups/phar/box.phar/src/RequirementChecker/AppRequirementsFactory.php:25
_HumbugBox9fb2001568f0\KevinGH\Box\RequirementChecker\AppRequirementsFactory->createBuilder() at phar:///shared/backups/phar/box.phar/src/RequirementChecker/AppRequirementsFactory.php:19
_HumbugBox9fb2001568f0\KevinGH\Box\RequirementChecker\AppRequirementsFactory->create() at phar:///shared/backups/phar/box.phar/src/RequirementChecker/RequirementsDumper.php:39
_HumbugBox9fb2001568f0\KevinGH\Box\RequirementChecker\RequirementsDumper->dumpRequirementsConfig() at phar:///shared/backups/phar/box.phar/src/RequirementChecker/RequirementsDumper.php:30
_HumbugBox9fb2001568f0\KevinGH\Box\RequirementChecker\RequirementsDumper->dump() at phar:///shared/backups/phar/box.phar/src/Console/Command/CompileCommand.php:283
_HumbugBox9fb2001568f0\KevinGH\Box\Console\Command\CompileCommand::registerRequirementsChecker() at phar:///shared/backups/phar/box.phar/src/Console/Command/CompileCommand.php:151
_HumbugBox9fb2001568f0\KevinGH\Box\Console\Command\CompileCommand->createPhar() at phar:///shared/backups/phar/box.phar/src/Console/Command/CompileCommand.php:129
_HumbugBox9fb2001568f0\KevinGH\Box\Console\Command\CompileCommand->execute() at phar:///shared/backups/phar/box.phar/vendor/fidry/console/src/Bridge/Command/SymfonyCommand.php:69
_HumbugBox9fb2001568f0\Fidry\Console\Bridge\Command\SymfonyCommand->execute() at phar:///shared/backups/phar/box.phar/vendor/symfony/console/Command/Command.php:174
_HumbugBox9fb2001568f0\Symfony\Component\Console\Command\Command->run() at phar:///shared/backups/phar/box.phar/vendor/symfony/console/Application.php:732
_HumbugBox9fb2001568f0\Symfony\Component\Console\Application->doRunCommand() at phar:///shared/backups/phar/box.phar/vendor/symfony/console/Application.php:256
_HumbugBox9fb2001568f0\Symfony\Component\Console\Application->doRun() at phar:///shared/backups/phar/box.phar/vendor/symfony/console/Application.php:136
_HumbugBox9fb2001568f0\Symfony\Component\Console\Application->run() at phar:///shared/backups/phar/box.phar/vendor/fidry/console/src/Application/ApplicationRunner.php:39
_HumbugBox9fb2001568f0\Fidry\Console\Application\ApplicationRunner->run() at phar:///shared/backups/phar/box.phar/bin/box:47
require() at /shared/backups/phar/box.phar:19

compile [--debug] [--no-parallel] [--sort-compiled-files] [--no-restart] [--dev] [--no-config] [--with-docker] [--composer-bin COMPOSER-BIN] [--allow-composer-check-failure] [-c|--config CONFIG] [-d|--working-dir WORKING-DIR]

[debug] Restarted process exited 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions