Skip to content

Conversation

@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

❌ Patch coverage is 83.24873% with 33 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.36%. Comparing base (dcbeddf) to head (a6781fe).
⚠️ Report is 1 commits behind head on 7.x.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                7.x    #1036      +/-   ##
============================================
- Coverage     88.54%   88.36%   -0.18%     
- Complexity     1461     1473      +12     
============================================
  Files           145      145              
  Lines          4145     4144       -1     
============================================
- Hits           3670     3662       -8     
- Misses          475      482       +7     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jeromegamez jeromegamez force-pushed the 8.x branch 2 times, most recently from 45e7620 to 5d2ab01 Compare December 3, 2025 21:32
@jeromegamez jeromegamez added the 8.x label Dec 3, 2025
`Throwable::getCode()` can be non-int.
Methods that previously accepted `Stringable|string` as argument types
now only support `string`.

`Stringable` was added for convenience so that someone could do,
for example

```php
$user = $auth->getUser('uid');
$auth->updateUser($user, [...]);
```

While convenient, this adds overhead when processing these arguments.
For example, if a method expects a non-empty string, the SDK would
have to do a `trim((string) $arg)` and check if it's empty.

With this change, we can rely only on a `@var non-empty-string $arg`
docblock annotation.

```php
$user = $auth->getUser('uid');
$auth->updateUser($user->uid, [...]);
```
But ignore unavoidable interface returns on public APIs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants