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

Unify namespace #208

Merged
merged 4 commits into from
Aug 10, 2023
Merged

Unify namespace #208

merged 4 commits into from
Aug 10, 2023

Conversation

joanhey
Copy link
Contributor

@joanhey joanhey commented Aug 8, 2023

Description

As the App Class, use namespace Leaf, any function or class call will be relative to that namespace.

Actually exist a mix of fully qualified namespaces and normal.
Now all use normal qualified.

Also added type hint to the properties.

image

@joanhey
Copy link
Contributor Author

joanhey commented Aug 9, 2023

Typed properties need PHP 7.4, and after read the documentation the minimal PHP version is 7.2 (because in composer.json don't require any minimal php version). Added PR #210 to fix that.

If you want I can't remove the Typed properties.
But also PHP 7.4 is EOL and not Pest tested versions lower than 7.4.
https://www.php.net/supported-versions.php

@mychidarko
Copy link
Member

Hey @joanhey I'm aware of the PHP 7.4 EOL. Leaf still supports PHP 7 just to help people with easy adoption/migration of older systems since a Leaf app in PHP 7 will be exactly the same in PHP 8.

Also, I've updated the minimum requirement for the next version from 7.2 to 7.4, so this is perfectly fine

@mychidarko mychidarko merged commit 01918a7 into leafsphp:v3.x Aug 10, 2023
12 checks passed
@joanhey joanhey deleted the unify-namespace branch August 10, 2023 00:18
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