Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "annotations" setting has been set but is ignored since no PHP compactor has been configured #1425

Open
ruudk opened this issue Nov 28, 2024 · 1 comment
Labels

Comments

@ruudk
Copy link

ruudk commented Nov 28, 2024

Bug report

Question Answer
Box version Box version 4.6.1@048e634 2023-12-21 12:09:11 UTC
PHP version 8.4.1
Platform with version macOS
box.json.dist
{
   "compression": "GZ",
   "compactors": [
       "KevinGH\\Box\\Compactor\\Php",
       "KevinGH\\Box\\Compactor\\Json"
   ],
   "annotations": {
       "ignore": [
           "param"
       ]
   },
   "check-requirements": false,
   "directories-bin": [
       "config",
       "example"
   ]
}
Output
$ command
Box version 4.6.1@048e634 2023-12-21 12:09:11 UTC

// Loading the configuration file
// "/Volumes/CS/opensource/twigstan/box.json".

🔨  Building the PHAR "/Volumes/CS/opensource/twigstan/bin/twigstan.phar"

? Removing the existing PHAR "/Volumes/CS/opensource/twigstan/bin/twigstan.phar"
? Checking Composer compatibility
   > Supported version detected
? Registering compactors
 + KevinGH\Box\Compactor\Php
 + KevinGH\Box\Compactor\Json
? Adding main file: /Volumes/CS/opensource/twigstan/bin/twigstan
? Skip requirements checker
? Adding binary files
   > 9 file(s)
? Auto-discover files? Yes
? Exclude dev files? Yes
? Adding files
   > 1099 file(s)
? Generating new stub
 - Using shebang line: #!/usr/bin/env php
 - Using banner:
   > Generated by Humbug Box 4.6.1@048e634.
   >
   > @link https://github.com/humbug/box
? Dumping the Composer autoloader
? Removing the Composer dump artefacts
? Compressing with the algorithm "GZ"
   > Warning: the extension "zlib" will now be required to execute the PHAR
? Setting file permissions to 0755
* Done.

No recommendation found.
⚠️  1 warning found:
   - The "annotations" setting has been set but is ignored since no PHP compactor has been configured

// PHAR: 1116 files (4.34MB)
// You can inspect the generated PHAR with the "info" command.

// Memory usage: 44.79MB (peak: 49.53MB), time: 2secs

As you can see, I am using the Php compacter.

I installed using brew install box.

@theofidry theofidry added the bug label Dec 1, 2024
@theofidry
Copy link
Member

Thanks for the report @ruudk, I just want to be transparent and say I'm not sure when I can take a look to fix it, and hopefully it is not a blocker for you as it is only a warning. The report is still appreciated nonetheless and that shouldn't be too hard to fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants