Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type declaration to helpers #2512

Open
wants to merge 4 commits into
base: 3.x
Choose a base branch
from
Open

Conversation

Tofandel
Copy link
Contributor

@Tofandel Tofandel commented Mar 1, 2024

This is just starting the process of adding type declarations, started with the helpers because it's the ones we can do in v3 without any breaking changes (because passing any type differently would already result in fatal errors)

Also added some small perf improvement by using ->all() instead of ->toArray() (the latter being more expensive because of a map) or completely keeping them as collections which are iterable, there will be more to come, but just a few obvious one

I also added real deprecation messages to deprecated helpers

I also replaced the namespace of larastan which has moved to https://github.com/larastan/larastan (the old one is abandonned)

Not in this PR, but I'd also like to eventually deprecate all helper methods except really vital ones (like twillTrans) and move them to namespaced helper classes with facade instead to avoid polluting the global namespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants