Skip to content

Commit 611cbc8

Browse files
committed
[skip ci] Update PHP type hints and lower PHP version requirement
Constructor type hints for JsUtils are updated to use nullable type syntax (?JsUtils) for consistency and modern PHP standards. The minimum required PHP version in composer.json is lowered from 8.5 to 8.1.
1 parent bdcbb74 commit 611cbc8

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Ajax/common/components/SimpleComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class SimpleComponent extends BaseComponent {
1616
protected $uiName;
1717
protected $events;
1818

19-
public function __construct(JsUtils $js=NULL) {
19+
public function __construct(?JsUtils $js=NULL) {
2020
parent::__construct($js);
2121
$this->events=array ();
2222
}

Ajax/semantic/components/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Form extends SimpleSemExtComponent {
1414
/**
1515
* @var array
1616
*/
17-
public function __construct(JsUtils $js=null) {
17+
public function __construct(?JsUtils $js=null) {
1818
parent::__construct($js);
1919
$this->uiName="form";
2020
$this->params["fields"]=[];

Ajax/semantic/components/SimpleSemExtComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class SimpleSemExtComponent extends SimpleExtComponent {
99
protected $paramParts;
10-
public function __construct(JsUtils $js=NULL) {
10+
public function __construct(?JsUtils $js=NULL) {
1111
parent::__construct($js);
1212
$this->paramParts=array();
1313
}

Ajax/semantic/components/Slider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
class Slider extends SimpleSemExtComponent {
1717

18-
public function __construct(JsUtils $js=NULL) {
18+
public function __construct(?JsUtils $js=NULL) {
1919
parent::__construct($js);
2020
$this->uiName='slider';
2121
}

Ajax/semantic/components/Toast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
class Toast extends SimpleSemExtComponent {
1616

17-
public function __construct(JsUtils $js=NULL) {
17+
public function __construct(?JsUtils $js=NULL) {
1818
parent::__construct($js);
1919
$this->uiName='toast';
2020
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"framework"
1818
],
1919
"require": {
20-
"php": ">=8.5",
20+
"php": ">=8.1",
2121
"frameworks/jquery": "~2.1"
2222
},
2323
"suggest": {

0 commit comments

Comments
 (0)