Skip to content

Conversation

@defunctl
Copy link
Contributor

Main Changes

  • Provides the proper phpstan return shape for Assets::get()
  • Assets::get() now properly returns null if you are looking for a specific asset slug and it's not found.
  • Added Assets::remove_all() method, which is handy for test running.
  • The it_should_accept_instance_of_asset_or_array_of_assets_in_register_in_wp test was not actually running and it was also failing, @dpanta94 helped fix it.

@defunctl defunctl added this to the 1.5.0 milestone Sep 22, 2025
@defunctl defunctl requested a review from dpanta94 September 22, 2025 17:50
@defunctl defunctl self-assigned this Sep 22, 2025
@defunctl defunctl added bug Something isn't working enhancement New feature or request labels Sep 22, 2025
@defunctl defunctl merged commit 9280e52 into main Sep 22, 2025
3 checks passed
@defunctl defunctl deleted the bugfix/proper-phpstan-annotations branch September 22, 2025 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants