Hi,
System: CentOS 7.9.2009 x86_64(Py3.12.3)
aaPanel 7.0.7.
I used the composer through the terminal to install a package.
But I get mistakes:
> [root@mail ~]# cd /www/wwwroot/admin.mysite.com/site
> [root@mail site]# composer require genealabs/laravel-model-caching
> PHP Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 119
>
> Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 119
> PHP Deprecated: Optional parameter $packageName declared before required parameter $ignoreFilters is implicitly treated as a required parameter in phar:///usr/bin/composer/src/Composer/Command/ArchiveCommand.php on line 97
>
> Deprecated: Optional parameter $packageName declared before required parameter $ignoreFilters is implicitly treated as a required parameter in phar:///usr/bin/composer/src/Composer/Command/ArchiveCommand.php on line 97
> PHP Deprecated: Optional parameter $version declared before required parameter $ignoreFilters is implicitly treated as a required parameter in phar:///usr/bin/composer/src/Composer/Command/ArchiveCommand.php on line 97
>
> Deprecated: Optional parameter $version declared before required parameter $ignoreFilters is implicitly treated as a required parameter in phar:///usr/bin/composer/src/Composer/Command/ArchiveCommand.php on line 97
> PHP Deprecated: Optional parameter $format declared before required parameter $ignoreFilters is implicitly treated as a required parameter in phar:///usr/bin/composer/src/Composer/Command/ArchiveCommand.php on line 97
>
> Deprecated: Optional parameter $format declared before required parameter $ignoreFilters is implicitly treated as a required parameter in phar:///usr/bin/composer/src/Composer/Command/ArchiveCommand.php on line 97
> PHP Deprecated: Optional parameter $dest declared before required parameter $ignoreFilters is implicitly treated as a required parameter in phar:///usr/bin/composer/src/Composer/Command/ArchiveCommand.php on line 97
>
> Deprecated: Optional parameter $dest declared before required parameter $ignoreFilters is implicitly treated as a required parameter in phar:///usr/bin/composer/src/Composer/Command/ArchiveCommand.php on line 97
> PHP Deprecated: Optional parameter $fileName declared before required parameter $ignoreFilters is implicitly treated as a required parameter in phar:///usr/bin/composer/src/Composer/Command/ArchiveCommand.php on line 97
>
> Deprecated: Optional parameter $fileName declared before required parameter $ignoreFilters is implicitly treated as a required parameter in phar:///usr/bin/composer/src/Composer/Command/ArchiveCommand.php on line 97
> Deprecation Notice: Optional parameter $schema declared before required parameter $path is implicitly treated as a required parameter in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:53
> Deprecation Notice: Optional parameter $schema declared before required parameter $path is implicitly treated as a required parameter in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:97
> Deprecation Notice: Return type of JsonSchema\Iterator\ObjectIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php:42
> Deprecation Notice: Return type of JsonSchema\Iterator\ObjectIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php:52
> Deprecation Notice: Return type of JsonSchema\Iterator\ObjectIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php:61
> Deprecation Notice: Return type of JsonSchema\Iterator\ObjectIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php:71
> Deprecation Notice: Return type of JsonSchema\Iterator\ObjectIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php:81
> Deprecation Notice: Return type of JsonSchema\Iterator\ObjectIterator::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.php:90
> Deprecation Notice: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:48
> Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/bin/composer/src/Composer/Repository/ArrayRepository.php:196
> Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/bin/composer/src/Composer/Repository/ArrayRepository.php:196
> Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/bin/composer/src/Composer/Repository/ArrayRepository.php:196
>
> Deprecation Notice: iconv(): Passing null to parameter #3 ($string) of type string is deprecated in phar:///usr/bin/composer/vendor/symfony/polyfill-mbstring/Mbstring.php:113
> Deprecation Notice: iconv(): Passing null to parameter #3 ($string) of type string is deprecated in phar:///usr/bin/composer/vendor/symfony/polyfill-mbstring/Mbstring.php:113
> Deprecation Notice: iconv(): Passing null to parameter #3 ($string) of type string is deprecated in phar:///usr/bin/composer/vendor/symfony/polyfill-mbstring/Mbstring.php:113
> Deprecation Notice: iconv(): Passing null to parameter #3 ($string) of type string is deprecated in phar:///usr/bin/composer/vendor/symfony/polyfill-mbstring/Mbstring.php:113
> Deprecation Notice: iconv(): Passing null to parameter #3 ($string) of type string is deprecated in phar:///usr/bin/composer/vendor/symfony/polyfill-mbstring/Mbstring.php:113
>
> [ErrorException]
> Trying to access array offset on null
Help fix the mistakes.
What should I do?