Skip to content

Commit 2a02fed

Browse files
authored
[5.3] Fix deprecation text and add Registry to StateBehaviorTrait (#45437)
1 parent ab8edd1 commit 2a02fed

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

libraries/src/MVC/Model/State.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* @since 5.0.0
2323
*
24-
* @deprecated 7.0 Use the Registry directly
24+
* @deprecated 5.0.0 will be removed in 7.0, use the Registry directly
2525
*/
2626
class State extends Registry
2727
{
@@ -70,7 +70,7 @@ public function get($path, $default = null)
7070
*
7171
* @since 5.0.0
7272
*
73-
* @deprecated 7.0 Use toArray instead
73+
* @deprecated 5.0.0 will be removed in 7.0, use toArray instead
7474
*/
7575
public function getProperties()
7676
{

libraries/src/MVC/Model/StateBehaviorTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ trait StateBehaviorTrait
3131
/**
3232
* A state object
3333
*
34-
* @var State
34+
* @var State|\Joomla\Registry\Registry
3535
* @since 4.0.0
36+
*
37+
* @todo Remove the State type hint in Joomla 7.0 since it will be removed see State class
3638
*/
3739
protected $state = null;
3840

0 commit comments

Comments
 (0)