wp-cli / dist-archive-command

Create a distribution .zip or .tar.gz based on a plugin or theme's .distignore file
https://developer.wordpress.org/cli/commands/dist-archive/
MIT License
47 stars 23 forks source link

Warnings when running wp dist-archive create #95

Closed brianhogg closed 4 months ago

brianhogg commented 4 months ago

Bug Report

Describe the current, buggy behavior

When running wp dist-archive <dir> with PHP 8.2, there's a bunch of warnings:

Deprecated: Creation of dynamic property Inmarelibero\GitIgnor^CeChecker\Model\GitIgnore\Rule::$gitIgnoreFile is deprecated in /Users/brianhogg/.wp-cli/packages/vendor/inmarelibero/gitignore-checker/src/Model/GitIgnore/Rule.php on line 46

Describe how other contributors can replicate this bug

Describe what you would expect as the correct outcome

No warnings :)

Let us know what environment you are running this on

OS: Darwin 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030 x86_64
Shell:  /bin/zsh
PHP binary: /usr/local/Cellar/php@8.2/8.2.18/bin/php
PHP version:    8.2.18
php.ini used:   /usr/local/etc/php/8.2/php.ini
MySQL binary:   /usr/local/bin/mysql
MySQL version:  mysql  Ver 8.1.0 for macos14.0 on x86_64 (Homebrew)
SQL modes:
WP-CLI root dir:    phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:  phar://wp-cli.phar/vendor
WP_CLI phar path:   /Users/brianhogg/laravel/lifter2/wp-content/plugins
WP-CLI packages dir:    /Users/brianhogg/.wp-cli/packages/
WP-CLI cache dir:   /Users/brianhogg/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.10.0

Provide a possible solution

Update the inmarelibero/gitignore-checker package, if there's a newer version.

BrianHenryIE commented 4 months ago

https://github.com/inmarelibero/gitignore-checker/pull/14