Skip to content

Commit bdcbb74

Browse files
committed
[skip ci] Update method signatures and property access
Changed InternalPopup::_compileHtml to use nullable type hint syntax for JsUtils. Removed setAccessible(true) from InstanceViewer::_getPropertyValue, relying on default property accessibility.
1 parent 9d19b8e commit bdcbb74

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Ajax/semantic/html/content/InternalPopup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function compile(?JsUtils $js=NULL){
4848
}
4949
}
5050

51-
private function _compileHtml(JsUtils $js=NULL){
51+
private function _compileHtml(?JsUtils $js=NULL){
5252
if(JString::isNotNull($this->html)){
5353
$html=$this->html;
5454
if(\is_array($html)){

Ajax/semantic/widgets/base/InstanceViewer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ protected function _getDefaultValue($name, $value, $index) {
111111
}
112112

113113
protected function _getPropertyValue(\ReflectionProperty $property) {
114-
$property->setAccessible(true);
115114
return $property->getValue($this->instance);
116115
}
117116

0 commit comments

Comments
 (0)