Comments (8)
Should be fixed but I'm still interested to see a stack trace if you have one.
from semver.
The latest 2.2.x release of Composer is 2.2.18, not 2.2.6. Please try to use the latest version.
from semver.
Do you have a full stack trace for this? If you run composer with -v
it should print it.
from semver.
Well, now I can't reproduce it. I apologize, I might have been using a snapshot due to (composer/composer#10631), and this morning I updated composer to 2.3.2.
from semver.
I see, no worries.
from semver.
Isn't the real fix here to fix the caller that is making the invalid call. Not valid to call a function typed as string, with null?
from semver.
Caller has been fixed in composer already, but IMO this is still good to do to mimick a type hint, which would type juggle null into string as well. I don't want to drop 5.3 support just yet in this lib to avoid having to maintain too many branches.
from semver.
I am using version 2.2.6 with PHP8.1.13
Deprecation Notice: trim(): Passing null to parameter #1 ($string) of type string is deprecated in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/semver/src/VersionParser.php:105
Stack trace:
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Repository/PlatformRepository.php:671
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Repository/PlatformRepository.php:239
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Repository/ArrayRepository.php:311
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer.php:894
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer.php:428
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer.php:279
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Command/UpdateCommand.php:248
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Command/Command.php:245
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:835
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:185
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:336
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:117
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:131
phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer:83
C:\ProgramData\ComposerSetup\bin\composer.phar:29
from semver.
Related Issues (20)
- VersionParser accepts and further corrupts badly formatted version string HOT 5
- VersionParser crashed on version constraint like "dev-load-varnish-only-when-used as ^2.0@dev" HOT 1
- Sanitize version constraints HOT 1
- Could not parse version constraint @dev: Invalid version string "@dev" HOT 9
- UnexpectedValueException when running composer update HOT 1
- Proposal: Move functions out of Intervals class HOT 1
- Invalid version string "CLX6_2020R01-dev" in "dev-code-refactory-for-better-readability as CLX6_2020R01-dev", the alias must be an exact version HOT 3
- dev-trunk vs. dev-master HOT 2
- Previously invalid versions now valid (Bad aliases this time) HOT 4
- Invalid version string "8.x-1.x-dev" #671 HOT 2
- Invalid version string for some default PHP version naming scheme HOT 3
- Incorrect result of \Composer\Semver\Constraint\ConstraintInterface::matches() HOT 2
- VersionParser->normalize() returns invalid versions HOT 3
- versionRegex in VersionParser->parseConstraint has a dead match HOT 1
- Bumping patch version by one HOT 2
- Support larger MAJOR version numbers
- Unsatisfiable constraint must throw instead of compacting to empty HOT 6
- Inconsistent application of stability flags in parseConstraint HOT 6
- aren't 1.0 and 1.0.0 equal? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semver.