The issue
ubuntu@ip-172-31-92-154:/var/www/tendigitgrid.com$ sudo composer why-not flarum/core v1.5.0
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/local/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 112
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/local/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 112
Deprecation Notice: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:48
Warning: You should avoid overwriting already defined auth settings for extiverse.com.
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/local/bin/composer/src/Composer/Repository/ArrayRepository.php:277
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/local/bin/composer/src/Composer/Repository/ArrayRepository.php:277
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/local/bin/composer/src/Composer/Repository/ArrayRepository.php:277
Deprecation Notice: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:48
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
Deprecation Notice: Return type of Composer\Repository\CompositeRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/composer/src/Composer/Repository/CompositeRepository.php:180
Warning: You should avoid overwriting already defined auth settings for extiverse.com.
Warning: You should avoid overwriting already defined auth settings for extiverse.com.
Info from https://repo.packagist.org: #StandWithUkraine
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/local/bin/composer/src/Composer/Repository/ArrayRepository.php:277
There is no installed package depending on "flarum/core" in versions not matching v1.5.0
ubuntu@ip-172-31-92-154:/var/www/tendigitgrid.com$
Flarum information
ubuntu@ip-172-31-92-154:/var/www/tendigitgrid.com$ php flarum info
Flarum core 1.3.1
PHP version: 8.1.8
MySQL version: 8.0.31-0ubuntu0.20.04.1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, igbinary, imagick, imap, intl, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache
+-------------------------------------+---------+--------+
| Flarum Extensions | | |
+-------------------------------------+---------+--------+
| ID | Version | Commit |
+-------------------------------------+---------+--------+
| flarum-flags | v1.3.0 | |
| flarum-suspend | v1.3.1 | |
| flarum-subscriptions | v1.3.1 | |
| flarum-tags | v1.3.0 | |
| flarum-approval | v1.3.0 | |
| zerosonesfun-composer-preview | 1.1.9 | |
| v17development-seo | v1.8.0 | |
| fof-user-bio | 1.1.0 | |
| fof-upload | 1.2.3 | |
| fof-split | 1.0.1 | |
| fof-spamblock | 1.0.2 | |
| fof-sitemap | 2.0.0 | |
| fof-sentry | 1.1.1 | |
| fof-recaptcha | 1.1.0 | |
| fof-links | 1.1.1 | |
| fof-formatting | 1.0.2 | |
| fof-follow-tags | 1.1.4 | |
| fof-drafts | 1.1.2 | |
| fof-bbcode-details | 1.0.0 | |
| fof-analytics | 1.0.0 | |
| flarum-sticky | v1.3.0 | |
| flarum-statistics | v1.3.0 | |
| flarum-mentions | v1.3.1 | |
| flarum-markdown | v1.3.0 | |
| flarum-lock | v1.3.0 | |
| flarum-likes | v1.3.0 | |
| flarum-lang-english | v1.3.0 | |
| flarum-emoji | v1.3.0 | |
| flarum-bbcode | v1.3.0 | |
| davwheat-custom-sidenav-links | 1.0.1 | |
| davwheat-ads | 1.2.0 | |
| clarkwinkelmann-first-post-approval | 1.0.0 | |
| askvortsov-pwa | v3.1.3 | |
+-------------------------------------+---------+--------+
Base URL: https://www.tendigitgrid.com
Installation path: /var/www/tendigitgrid.com
Queue driver: sync
Mail driver: smtp
Debug mode: off
ubuntu@ip-172-31-92-154:/var/www/tendigitgrid.com$