Skip to content

composer.lock file versioning#31

Merged
trasher merged 1 commit into
glpi-project:mainfrom
cedric-anne:task/composer-lock
Jun 24, 2026
Merged

composer.lock file versioning#31
trasher merged 1 commit into
glpi-project:mainfrom
cedric-anne:task/composer-lock

Conversation

@cedric-anne

Copy link
Copy Markdown
Member

I figured out that the PHPStan version installed on my machine was the 2.2.2. If a new PHPStan feature would have been used in this extension, it would have pass the CI, but would have fail when executed in the GLPI context that is currently using the 2.1.56 version.

To prevent this kind of situation, it is preferable to version the composer.lock file. The /composer.lock export-ignore line in the .gitattributes file is here to prevent it from being present in the release archives installed by composer.

@trasher trasher merged commit 6f2da4a into glpi-project:main Jun 24, 2026
2 checks passed
@cedric-anne cedric-anne deleted the task/composer-lock branch June 24, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants