Skip to content

BUGFIX: Ensure compatibility with PHP 8.1 and Neos 8#28

Merged
nezaniel merged 2 commits into3.0from
fix/v3-php-and-neos-version-constraints
Jan 20, 2023
Merged

BUGFIX: Ensure compatibility with PHP 8.1 and Neos 8#28
nezaniel merged 2 commits into3.0from
fix/v3-php-and-neos-version-constraints

Conversation

@grebaldi
Copy link
Copy Markdown
Member

fixes: #26, #27

Description's in the title :D

I tested with PHP 8.1 and Neos 8.2 and found no issues.

Unit tests were mad at me, because the implementation of AbstractArrayFusionObject::sortNestedFusionKeys has changed in a way that confused Prophecy\Prophet (leaky implementation detail). I therefore do not expect that the changed test will run with anything below Neos 8, but for now, our automated tests would fetch Neos 8 anyway.

This required an adjustent to the Enum Generator because of a
deprecation message:
> PHP Deprecated:  Optional parameter $now declared before required
parameter $fileWriter is implicitly treated as a required parameter in
EnumGenerator.php on line 23
This required an adjustment to the
`PresentationObjectComponentImplementationTest`, because of a leaking
implementation detail of `AbstractArrayFusionObject`.
This was linked to issues Dec 20, 2022
@grebaldi grebaldi requested a review from nezaniel December 20, 2022 16:51
@nezaniel nezaniel merged commit 3125ff7 into 3.0 Jan 20, 2023
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.

Allow use with Neos 8 Allow use with PHP 8.1

2 participants