Skip to content

Commit

Permalink
string => string|null
Browse files Browse the repository at this point in the history
  • Loading branch information
OneMorePenguin committed Dec 7, 2024
1 parent 1a4f4d6 commit 0fcf574
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ActiveField.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ protected function createLayoutConfig(array $instanceConfig): array
* @param string|null $label the label or null to use model label
* @param array $options the tag options
*/
protected function renderLabelParts(string $label = null, array $options = [])
protected function renderLabelParts(string|null $label = null, array $options = [])
{
$options = array_merge($this->labelOptions, $options);
if ($label === null) {
Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapWidgetTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected function registerPlugin(string $name)
/**
* Registers JS event handlers that are listed in [[clientEvents]].
*/
protected function registerClientEvents(string $name = null)
protected function registerClientEvents(string|null $name = null)
{
if (!empty($this->clientEvents)) {
$id = $this->options['id'];
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function mockWebApplication(array $config = [], string $appClass = '\y
* @param string|null $moduleID
* @param array $params
*/
protected function mockAction(string $controllerId, string $actionID, string $moduleID = null, array $params = [])
protected function mockAction(string $controllerId, string $actionID, string|null $moduleID = null, array $params = [])
{
Yii::$app->controller = $controller = new Controller($controllerId, Yii::$app);
$controller->actionParams = $params;
Expand Down

0 comments on commit 0fcf574

Please sign in to comment.