Skip to content

Conversation

@shish
Copy link

@shish shish commented Aug 18, 2023

Using php 8.2 I'm getting a ton of error messages in my logs like:

Deprecated: Return type of TBela\CSS\Element::offsetUnset($offset) should
either be compatible with ArrayAccess::offsetUnset(mixed $offset): void,
or the #[\ReturnTypeWillChange] attribute should be used to temporarily
suppress the notice in [...]/src/ArrayTrait.php on line 72

and

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type
string is deprecated in [...]/src/Value.php on line 590

I'm not sure if this will break compatibility with php 8.0, I hope that the automated test suite will say if that's the case (if so, maybe the #[\ReturnTypeWillChange] approach would work?)

There are still two deprecation warnings coming from the upstream opis/closure library though...

I'm getting a ton of error messages in my logs like:
```
Deprecated: Return type of TBela\CSS\Element::offsetUnset($offset) should
either be compatible with ArrayAccess::offsetUnset(mixed $offset): void,
or the #[\ReturnTypeWillChange] attribute should be used to temporarily
suppress the notice in [...]/src/ArrayTrait.php on line 72
```
and
```
Deprecated: strtolower(): Passing null to parameter #1 ($string) of type
string is deprecated in [...]/src/Value.php on line 590
```
@tbela99
Copy link
Owner

tbela99 commented Aug 18, 2023

thanks,

I will review the updates ASAP

@shish
Copy link
Author

shish commented Nov 13, 2025

(bulk-closing PRs for libraries I'm no longer using)

@shish shish closed this Nov 13, 2025
@tbela99 tbela99 reopened this Nov 25, 2025
@tbela99 tbela99 changed the base branch from master to v.next November 25, 2025 15:21
@tbela99 tbela99 merged commit 5d19371 into tbela99:v.next Nov 25, 2025
1 of 4 checks passed
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