Version 5.10.43
Environment
Ubuntu 24.04 VM, tarball install
Checklist
- Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja? No. This relates to self hosted updating. I have not tried.
- Have you searched existing issues? Yes
- Have you inspected the logs in storage/logs/laravel.log for any errors? Yes, there are no recent errors listed there.
Describe the bug
Earlier today I updated to v5.10.43. Upon running www-data composer install
I am given the following warning:
Warning: Ambiguous class resolution, "Carbon\Doctrine\DateTimeImmutableType" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeImmutableType.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/DateTimeImmutableType.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\DateTimeType" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeType.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/DateTimeType.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\CarbonDoctrineType" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonDoctrineType.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/CarbonDoctrineType.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\CarbonTypeConverter" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonTypeConverter.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/CarbonTypeConverter.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\DateTimeDefaultPrecision" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeDefaultPrecision.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/DateTimeDefaultPrecision.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\CarbonType" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonType.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/CarbonType.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\CarbonImmutableType" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonImmutableType.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/CarbonImmutableType.php", the first will be used.
Class Tests\Unit\Requests\EInvoice\Peppol\AddTaxIdentifierRequestTest located in ./tests/Feature/EInvoice/Validation/AddTaxIdentifierRequestTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Tests\Unit\TimeZoneTest located in ./tests/Unit/TimezoneTest.php does not comply with psr-4 autoloading standard. Skipping.
Class CleverIt\UBL\Invoice\Codes\V21\PaymentCode located in ./vendor/invoiceninja/ubl_invoice/src/Codes/V21/PaymeanMeansCode.php does not comply with psr-4 autoloading standard. Skipping.
Steps To Reproduce
- Download tarball for v5.10.43
- Unzip it to InvoiceNinja directory
- Run
-u www-data composer install
Expected Behavior
No warning should be presented.
Additional context
Here is the very odd occurrence. I initially performed the update on my production server for my business and got the warning above. I also have two test VMs running InvoiceNinja to try duplicating errors when assisting other users here on the forum. One is a VM of Ubuntu 22.04 and the other is another VM with Ubuntu 24.04. Running the update on the two test VMs did not produce the warning.
Logs
There are no errors in my laravel.log
file.
Any idea what went on? Yes, I have reported this on GitHub.