Skip to content

Conversation

@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

❌ Patch coverage is 82.77946% with 57 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.38%. Comparing base (4127840) to head (09dc1fe).

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##                7.x    #1036       +/-   ##
=============================================
+ Coverage     69.93%   87.38%   +17.44%     
- Complexity     1461     1468        +7     
=============================================
  Files           145      145               
  Lines          4145     4138        -7     
=============================================
+ Hits           2899     3616      +717     
+ Misses         1246      522      -724     
🚀 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 3b32604 to ea1cc9f Compare December 16, 2025 00:09
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
@jeromegamez
Copy link
Member Author

8.x is now the new default branch.

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