? Success

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
24 Oct 2014

JObject is one of the last classes remaining from the PHP 4 era. It has two uses. JError setting (now deprecated) and setting and getting class vars. In the past this allowed us to create our own public and private variables. However now this is happily not the case as PHP5 meant we could set these in the class. For that reason I'd like to mark this class as deprecated.

Just like JError we can't feasibly remove all uses before Joomla 4 in a b/c way. But it points to developers to stop using this class where feasibly possible

Note this PR going through doesn't mean you shouldn't test #4909 (it's really good to have full unit test coverage as this class is still going to be used in many places in the 3.x series)

avatar wilsonge wilsonge - open - 24 Oct 2014
avatar jissues-bot jissues-bot - change - 24 Oct 2014
Labels Added: ?
avatar spignataro
spignataro - comment - 24 Oct 2014

Funny - I thought this was already deprecated - guess marking it deprecated is a wise idea. Good catch.

avatar zero-24
zero-24 - comment - 24 Oct 2014

@wilsonge

847FILE: /home/travis/build/joomla/joomla-cms/libraries/joomla/object/object.php

848--------------------------------------------------------------------------------

849FOUND 1 ERROR(S) AFFECTING 1 LINE(S)

850--------------------------------------------------------------------------------

851 18 | ERROR | @since tag comment indented incorrectly; expected 2 spaces but

852    |       | found 7

853--------------------------------------------------------------------------------

```ยด

But i'm not 100% sure that this is correct / expexted. I think we should be able to align with spaces here.
avatar Bakual
Bakual - comment - 24 Oct 2014

@zero-24 Let @wilsonge fix the typo, maybe then Travis is fine with the spaces :)

avatar compojoom
compojoom - comment - 24 Oct 2014

If we are deprecating the class, why are we refactoring it? http://issues.joomla.org/tracker/joomla-cms/4909 ???

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4910.

avatar Bakual
Bakual - comment - 24 Oct 2014

Because, as George said already it will still be in use some years and it makes sense to make it testable.

avatar wilsonge wilsonge - change - 24 Oct 2014
The description was changed
avatar wilsonge
wilsonge - comment - 24 Oct 2014

Stupid typo's at 2am grumbles

avatar wilsonge
wilsonge - comment - 24 Oct 2014

Tests pass now!

avatar Bakual Bakual - reference | 1e01a2f - 24 Oct 14
avatar Bakual Bakual - change - 24 Oct 2014
Milestone Added:
avatar Bakual Bakual - close - 24 Oct 2014
avatar Bakual
Bakual - comment - 24 Oct 2014

Merged into 3.4-dev. Thanks!

avatar Bakual Bakual - close - 24 Oct 2014
avatar Bakual Bakual - change - 24 Oct 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-10-24 13:25:06
avatar wilsonge wilsonge - head_ref_deleted - 24 Oct 2014

Add a Comment

Login with GitHub to post a comment