Skip to content

Conversation

@tusharnain
Copy link
Contributor

Summary

This PR improves the datatables() helper docblock by making the return type more explicit and IDE-friendly.

Changes

  • Updated the @return annotation to conditionally specify the type:
    • \Yajra\DataTables\DataTables when $source is null.
    • \Yajra\DataTables\DataTableAbstract when $source is provided.

Why

  • Enhances IDE autocompletion and static analysis.
  • Provides clearer context for developers using the helper.
  • No runtime or behavioral changes were made.

Notes

This is a documentation-only update. No tests required.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 2, 2025

@yajra yajra merged commit c4af0b1 into yajra:master Oct 3, 2025
6 of 7 checks passed
@yajra
Copy link
Owner

yajra commented Oct 8, 2025

🎉 This PR is included in version 12.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@yajra yajra added the released label Oct 8, 2025
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