Closed (fixed)
Project:
UI Skins
Version:
1.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2025 at 02:58 UTC
Updated:
23 Sep 2025 at 13:49 UTC
Jump to comment: Most recent
Updating ui_skins 1.1.0-alpha3 => 1.1.0-alpha4 throws error:
ParseError: syntax error, unexpected identifier "HEXADECIMAL_CHANNEL_LENGTH", expecting "=" in Composer\Autoload\includeFile() (line 31 of /web/modules/contrib/ui_skins/src/Element/AlphaColor.php
Upgrade ui_skins 1.1.0-alpha3 => 1.1.0-alpha4: composer update
Then, attempt db update: vendor/bin/drush updb
Unsure, haven't finished reviewing the latest commit yet.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
grimreaperComment #3
grimreaperWhich PHP version are you using?
Starting 1.1.0-alpha4, ui_skins requires PHP 8.3, but it seems that updating the .info.yml did not put the requirement into the automatically generated composer.json by drupal.org facade.
Comment #4
grimreaperAfter discussion on infrastructure Slack channel, PHP requirement from .info.yml is not extracted, need to create a composer.json file.
Then indicate in previous release the problem.
Comment #5
paskainos commentedThank you, @grimreaper for your speedy response.
The site in question is running PHP 8.2 - mystery solved! Should've / could've anticipated that. My apologies for not including that crucial bit in (let alone testing for it prior to) my initial post.
I'm not quite sure what that means. I guess my question is; do you need me to do anything further at this point?
Comment #6
grimreaperHello @paskainos,
No worries, I will finish this.
1: I should have (and will) update release note to mention this new requirement
2: I didn't know that this .info.yml requirement was not taken automatically so I will also fix other contrib modules I maintain.
3: the .info.yml change only prevents installation, so for websites with the module already enabled it is not handled
So unfortunately, very little stuff you could have done no worries. Except looking at the whole diff but that's not something normally asked when doing updates ^^.
So it will be ok for next releases, composer will prevent the update, but not for 1.1.0-alpha4 so I will put a big warning message on release note.
Comment #9
grimreaper