Skip to content

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Sep 5, 2025

Q A
Branch? 6.4
Bug fix? no
New feature? no
Deprecations? no
Issues
License MIT

There are probably more places but these are the ones our test suite revealed.

@carsonbot carsonbot added this to the 6.4 milestone Sep 5, 2025
@carsonbot carsonbot changed the title use the empty string instead of null as an array offset use the empty string instead of null as an array offset Sep 5, 2025
@@ -25,6 +25,7 @@ public function __construct(array $mapping)

public function transform($value): mixed
{
$value = $value ?? '';
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$value = $value ?? '';
$value ??= '';

@xabbuh xabbuh force-pushed the php-deprecation-null-array-offset branch from fc3e83d to e4b9d6c Compare September 5, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants