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

chore: upgrade dependencies and refactor for PHP 8.3 and WordPress 6.3 compatibility #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alvaromartinezmajado
Copy link

@alvaromartinezmajado alvaromartinezmajado commented Aug 26, 2024

This commit addresses the necessary changes to ensure the NASAPress WordPress theme is compatible with PHP 8.3 and WordPress 6.3. The following updates and modifications were made:

  • Blade and BladeProvider Classes:

    • Introduced a new protected $env property within the Blade class to manage the environment.
    • Enhanced the BladeProvider class by registering the Blade compiler to align with the latest Laravel Blade syntax and standards.
  • Composer Dependencies:

    • Updated the composer.json to increase the PHP requirement to >=5.6.4 and upgraded critical dependencies: - illuminate/view, illuminate/config, illuminate/support, illuminate/container have been bumped to ^8.0 to support the new PHP environment. - Added carbonphp/carbon-doctrine-types and other dependencies required for compatibility with PHP 8.3.
    • Adjusted composer.lock to reflect these dependency changes and ensure smooth installation and operation.
    • Refined the head.blade.php file to ensure proper function string encapsulation, particularly within the environment check, enhancing code clarity and preventing potential issues.

…6.3 compatibility

This commit addresses the necessary changes to ensure the NASAPress WordPress theme is compatible with PHP 8.3 and WordPress 6.6.3. The following updates and modifications were made:

- Blade and BladeProvider Classes:
  - Introduced a new `protected $env` property within the `Blade` class to manage the environment.
  - Enhanced the `BladeProvider` class by registering the Blade compiler to align with the latest Laravel Blade syntax and standards.

- Composer Dependencies:
  - Updated the `composer.json` to increase the PHP requirement to `>=5.6.4` and upgraded critical dependencies:
    - `illuminate/view`, `illuminate/config`, `illuminate/support`, `illuminate/container` have been bumped to `^8.0` to support the new PHP environment.
    - Added `carbonphp/carbon-doctrine-types` and other dependencies required for compatibility with PHP 8.3.
  - Adjusted `composer.lock` to reflect these dependency changes and ensure smooth installation and operation.
  - Refined the `head.blade.php` file to ensure proper function string encapsulation, particularly within the environment check, enhancing code clarity and preventing potential issues.
@alvaromartinezmajado alvaromartinezmajado changed the title chore: upgrade dependencies and refactor for PHP 8.3 and WordPress 6.3.3 compatibility chore: upgrade dependencies and refactor for PHP 8.3 and WordPress 6.3 compatibility Aug 26, 2024
@bruffridge
Copy link
Member

Thank you @michaelbdavidson7 will be looking into merging your PR.

@alvaromartinezmajado
Copy link
Author

@bruffridge @michaelbdavidson7 thank you. Happy to help and can address any doubts or make any necessary tweaks to improve the PR if needed.

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