User tests: Successful: Unsuccessful:
@property-reads
docs for better IDE/static analysis support.TaskOption::type
to TaskOption::id
Everything works as expected; but:
TaskOption::type doesn't make sense.
Poor IDE support for $taskOption->{property} since they're accessed only through TaskOption::__get().
Everything works as expected; but:
TaskOption::id makes more sense.
IDE doesn't complain about valid $taskOption->{property{ reads.
-
Status | New | ⇒ | Pending |
Category | ⇒ | Administration |
Labels |
Added:
?
|
Create a new task.
Cannot use object of type Joomla\CMS\Object\CMSObject as array
JROOT\administrator\components\com_scheduler\src\Traits\TaskPluginTrait.php:214
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
I guess this will break all 3rd party extension, using ->type
already, so you need to add the fallback into the magic get method (if "type" use "id") and deprecate it the same moment to make it work.
Labels |
Added:
?
?
|
I guess this will break all 3rd party extension, using
->type
already, so you need to add the fallback into the magic get method (if "type" use "id") and deprecate it the same moment to make it work.
@bembelimen added back with deprecated status. Please review.
Labels |
Removed:
?
|
@bembelimen Does it need 2 tests again? Or is it ok to keep RTC and you review?
We should use the log class instead throwing a PHP depreciation:
https://github.com/joomla/joomla-cms/blob/4.1-dev/libraries/src/Application/CMSApplication.php#L418
Then review is enough
We should use the log class instead throwing a PHP depreciation:
https://github.com/joomla/joomla-cms/blob/4.1-dev/libraries/src/Application/CMSApplication.php#L418
Then review is enough
@ditsuke Could you implement that suggestion? Thanks in advance.
Labels |
Added:
?
|
@richard67 thanks for tagging. Implemented with ef13678.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-03-12 09:34:54 |
Closed_By | ⇒ | bembelimen |
Thx
thanks
Tests, please!