Skip to content

Make the code compatible with PHP 7.4 - #374

Closed
hAbd0u wants to merge 1 commit into
EasyEngine:developfrom
hAbd0u:compat-php-74
Closed

hAbd0u wants to merge 1 commit into
EasyEngine:developfrom
hAbd0u:compat-php-74

Conversation

@hAbd0u

@hAbd0u hAbd0u commented Apr 22, 2021

Copy link
Copy Markdown

During some tests using PHP 7.4, I found a warring notice like this:
PHP Warning: Creating default object from empty value in /root/workspace/easyengine-74/vendor/easyengine/site-command/src/Site_Command.php on line 46
This is happen when trying to access a property or method but it is null, or the object is not yet initialized. To fix this, I check if the object exist first.

@kirtangajjar kirtangajjar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @hAbd0u for this!

@hAbd0u

hAbd0u commented Apr 23, 2021

Copy link
Copy Markdown
Author

You are welcome.

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