chore: upgrade dependencies and refactor for PHP 8.3 and WordPress 6.3 compatibility #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
protected $env
property within theBlade
class to manage the environment.BladeProvider
class by registering the Blade compiler to align with the latest Laravel Blade syntax and standards.Composer Dependencies:
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. - Addedcarbonphp/carbon-doctrine-types
and other dependencies required for compatibility with PHP 8.3.composer.lock
to reflect these dependency changes and ensure smooth installation and operation.head.blade.php
file to ensure proper function string encapsulation, particularly within the environment check, enhancing code clarity and preventing potential issues.