Skip to content

Increase minimum PHP version to 8.2#158

Open
dmolineus wants to merge 6 commits intomasterfrom
feature/php-8.2
Open

Increase minimum PHP version to 8.2#158
dmolineus wants to merge 6 commits intomasterfrom
feature/php-8.2

Conversation

@dmolineus
Copy link
Copy Markdown
Contributor

No description provided.

@dmolineus dmolineus self-assigned this Feb 11, 2026
@dmolineus dmolineus requested a review from discordier February 11, 2026 08:01
@dmolineus
Copy link
Copy Markdown
Contributor Author

dmolineus commented Feb 11, 2026

@discordier Somehow box does not prefix the Phpcq\Runner\ConfigLoader class anymore. Any idea why?

It turned out that we still used box v3 which can't handle modern PHP code. I witched to v4, stumpled upon an issue ( box-project/box#1595).

The main question is now if adding readonly to the classes is considered as a BC break.

Workaround issue with broken scoper.inc.php integration in parallel mode
Copy link
Copy Markdown
Member

@discordier discordier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a small nitpick left.

I'd vote against treating the readonly as breaking change - they were intended to be immutable from the beginning and also were final, therefore they could not be overriden as writable.

Comment thread .phpcq.yaml.dist
requirements:
box:
signed: false
version: ^3.15
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be restricted to ^4.0 now IMO, so we won't use a 5.x when it comes around.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we then restrict the tool versions for each plugin?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only if they have inference with the code.
Like: Box, phpuniq, phpspec - all of these execute code or are extended by code within the repository.

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