Skip to content

Commit 60457ad

Browse files
committed
remove deprecated
1 parent 3b5ffa6 commit 60457ad

File tree

1 file changed

+0
-100
lines changed

1 file changed

+0
-100
lines changed

src/Registry.php

Lines changed: 0 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -838,104 +838,4 @@ protected function toFlatten($separator = null, $data = null, array &$array = []
838838
$array[$key] = $v;
839839
}
840840
}
841-
842-
/**
843-
* Magic method to access separator property.
844-
*
845-
* @param string $name The name of the property.
846-
*
847-
* @return string|null A value if the property name is valid, null otherwise.
848-
*
849-
* @since 2.0.0
850-
* @deprecated 3.0 This is a B/C proxy for deprecated read accesses
851-
*/
852-
public function __get($name)
853-
{
854-
switch ($name) {
855-
case 'separator':
856-
\trigger_deprecation(
857-
'joomla/registry',
858-
'2.0.0',
859-
'The $separator parameter will be removed in version 3.',
860-
self::class,
861-
self::class
862-
);
863-
864-
return $this->separator;
865-
866-
default:
867-
if (property_exists($this, $name)) {
868-
throw new \RuntimeException(
869-
\sprintf(
870-
'Cannot access protected or private property %s::$%s',
871-
__CLASS__,
872-
$name
873-
)
874-
);
875-
}
876-
877-
$trace = \debug_backtrace();
878-
\trigger_error(
879-
\sprintf(
880-
'Undefined property via __get(): %1$s in %2$s on line %3$s',
881-
$name,
882-
$trace[0]['file'],
883-
$trace[0]['line']
884-
),
885-
E_USER_NOTICE
886-
);
887-
888-
return null;
889-
}
890-
}
891-
892-
/**
893-
* Magic method to access separator property.
894-
*
895-
* @param string $name The name of the property.
896-
* @param mixed $value The value of the property.
897-
*
898-
* @return void
899-
*
900-
* @since 2.0.0
901-
* @deprecated 3.0 This is a B/C proxy for deprecated read accesses
902-
*/
903-
public function __set($name, $value)
904-
{
905-
switch ($name) {
906-
case 'separator':
907-
\trigger_deprecation(
908-
'joomla/registry',
909-
'2.0.0',
910-
'The $separator parameter will be removed in version 3.',
911-
self::class,
912-
self::class
913-
);
914-
915-
$this->separator = $value;
916-
break;
917-
918-
default:
919-
if (property_exists($this, $name)) {
920-
throw new \RuntimeException(
921-
\sprintf(
922-
'Cannot access protected or private property %s::$%s',
923-
__CLASS__,
924-
$name
925-
)
926-
);
927-
}
928-
929-
\trigger_deprecation(
930-
'joomla/registry',
931-
'__DEPLOY_VERSION__',
932-
'Creating a property will be removed in version 3.',
933-
self::class,
934-
self::class
935-
);
936-
937-
$this->$name = $value;
938-
break;
939-
}
940-
}
941841
}

0 commit comments

Comments
 (0)